Added .env file
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
Regular → Executable
View File
-4
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"
+3 -5
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
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 !
@@ -1,5 +1,4 @@
{ {
"token": "YOUR_BOT_TOKEN",
"prefix": "[", "prefix": "[",
"defaultCommandCooldown" : 1, "defaultCommandCooldown" : 1,
"statusChangeInterval": 8 "statusChangeInterval": 8
+1 -1
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 */
+328 -979
View File
File diff suppressed because it is too large Load Diff
+1 -2
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.