mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 16:30:08 +00:00
cleanup
This commit is contained in:
6
.github/workflows/deno.yml
vendored
6
.github/workflows/deno.yml
vendored
@@ -22,9 +22,6 @@ jobs:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Setup project
|
||||
run: cp configs.example.ts configs.ts
|
||||
|
||||
- name: Setup Deno environment
|
||||
uses: denolib/setup-deno@master
|
||||
|
||||
@@ -33,6 +30,3 @@ jobs:
|
||||
|
||||
- name: Deno Format Check
|
||||
run: deno fmt --check
|
||||
|
||||
- name: Build Documentation
|
||||
run: deploy.sh
|
||||
|
||||
24
.github/workflows/docs.yml
vendored
Normal file
24
.github/workflows/docs.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: Testing/Linting
|
||||
|
||||
# Controls when the action will run. Triggers the workflow on push or pull request
|
||||
# events but only for the master branch
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
build:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Build Documentation
|
||||
run: deploy.sh
|
||||
@@ -1,3 +0,0 @@
|
||||
export const configs = {
|
||||
token: "BOT_TOKEN_HERE",
|
||||
};
|
||||
36
debug.ts
36
debug.ts
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* This File will never run when you use it.
|
||||
* It is only meant for easy debugging/adding features to the library.
|
||||
* It allows me to easily run up a bot using the library itself without having to commit code
|
||||
* and then reloading cache from another bot folder to then test each micro change.
|
||||
* Especially since a lot of Deno is still unstable and we have to be able to adjust on the fly this is helpful.
|
||||
* Don't worry this will never run and you should never touch this file.
|
||||
* Review the official boilerplates to see how to start a bot!
|
||||
*/
|
||||
|
||||
import Client from "./module/client.ts";
|
||||
import { configs } from "./configs.ts";
|
||||
import { Intents } from "./types/options.ts";
|
||||
import { logYellow } from "./utils/logger.ts";
|
||||
import { cache } from "./utils/cache.ts";
|
||||
|
||||
Client({
|
||||
token: configs.token,
|
||||
botID: "675412054529540107",
|
||||
intents: [Intents.GUILDS, Intents.GUILD_MESSAGES, Intents.GUILD_MEMBERS],
|
||||
eventHandlers: {
|
||||
ready: () => {
|
||||
logYellow("Bot ready emitted");
|
||||
},
|
||||
// raw: (data) => logGreen("[RAW] => " + JSON.stringify(data)),
|
||||
messageCreate: async (message) => {
|
||||
if (message.author.id === "130136895395987456") {
|
||||
if (message.content.startsWith("!test")) {
|
||||
if (!message.guild_id) return;
|
||||
const guild = cache.guilds.get(message.guild_id);
|
||||
if (!guild) return logYellow("no guild");
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user