Added .env file
All checks were successful
Dat_Boi upload to portainer / Deploy (push) Successful in 7s

This commit is contained in:
2024-12-20 17:03:53 +01:00
parent db7d19c013
commit b0ddfae60c
36 changed files with 341 additions and 992 deletions

0
.dockerignore Normal file → Executable file
View File

View File

@ -5,9 +5,5 @@ jobs:
Deploy: Deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Add secret file
run: |
touch botconfig/config.json
echo '${{ secrets.BONCONFIG_CONFIG_JSON }}' > botconfig/config.json
- name: Send webhook to portainer - name: Send webhook to portainer
run: "curl -X POST -H 'Content-Type: application/json' -d '' http://172.23.0.1:20000/api/stacks/webhooks/6dbf44ed-eab0-4d52-a633-309d21ffd8c1" run: "curl -X POST -H 'Content-Type: application/json' -d '' http://172.23.0.1:20000/api/stacks/webhooks/6dbf44ed-eab0-4d52-a633-309d21ffd8c1"

8
.gitignore vendored
View File

@ -4,9 +4,7 @@ package-lock.json
# IDE files # IDE files
.vscode/ .vscode/
.idea/
# local env files # Environment variables
botconfig/config.json .env
# Large files
sounds/

8
README.md Normal file
View File

@ -0,0 +1,8 @@
# The best Discord bot pal in the universe
## Installation
Make a `.env`file in the project root directory with :
```env
DISCORD_TOKEN=[[YOUR DISCORD BOT TOKEN HERE]]
```
But why would you have your datboi ? There can only be one !

View File

@ -1,5 +1,4 @@
{ {
"token": "YOUR_BOT_TOKEN",
"prefix": "[", "prefix": "[",
"defaultCommandCooldown" : 1, "defaultCommandCooldown" : 1,
"statusChangeInterval": 8 "statusChangeInterval": 8

View File

@ -33,6 +33,6 @@ client.dmCommands = new Discord.Collection(); // all the private commands
}); });
//login into the bot //login into the bot
client.login(require("./botconfig/config.json").token); client.login(process.env.DISCORD_TOKEN);
/** Template by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template */ /** Template by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template */

1307
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,8 +4,7 @@
"description": "Dat boi, the annoying discord bot", "description": "Dat boi, the annoying discord bot",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"start": "node --trace-warnings index.js", "start": "node --trace-warnings --env-file=.env index.js"
"stop": "sh ~/scripts/sshKill.sh"
}, },
"author": "Tomato#6966 (author of this template), Ninluc", "author": "Tomato#6966 (author of this template), Ninluc",
"license": "ISC", "license": "ISC",

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
sounds/Roblox Oof.mp3 Normal file

Binary file not shown.

BIN
sounds/Ultimate oof.mp3 Normal file

Binary file not shown.

Binary file not shown.

BIN
sounds/italian.mp3 Normal file

Binary file not shown.

Binary file not shown.

BIN
sounds/juan.mp3 Normal file

Binary file not shown.

Binary file not shown.