From 74ed73231b59bda1d542ff7aeded7efdd97c21de Mon Sep 17 00:00:00 2001 From: Skillz Date: Thu, 18 Jun 2020 09:55:35 -0400 Subject: [PATCH] cleanup --- .github/workflows/deno.yml | 6 ------ .github/workflows/docs.yml | 24 ++++++++++++++++++++++++ configs.example.ts | 3 --- debug.ts | 36 ------------------------------------ 4 files changed, 24 insertions(+), 45 deletions(-) create mode 100644 .github/workflows/docs.yml delete mode 100644 configs.example.ts delete mode 100644 debug.ts diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 1ac4f48d5..7a28f3dda 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -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 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..9886e7afd --- /dev/null +++ b/.github/workflows/docs.yml @@ -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 diff --git a/configs.example.ts b/configs.example.ts deleted file mode 100644 index 6b1352c13..000000000 --- a/configs.example.ts +++ /dev/null @@ -1,3 +0,0 @@ -export const configs = { - token: "BOT_TOKEN_HERE", -}; diff --git a/debug.ts b/debug.ts deleted file mode 100644 index 8a31c825b..000000000 --- a/debug.ts +++ /dev/null @@ -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"); - } - } - }, - }, -});