mirror of
https://github.com/Ninluc/Dat_Boi.git
synced 2026-08-05 05:57:35 +02:00
This commit is contained in:
Regular → Executable
@@ -5,9 +5,5 @@ jobs:
|
||||
Deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Add secret file
|
||||
run: |
|
||||
touch botconfig/config.json
|
||||
echo '${{ secrets.BONCONFIG_CONFIG_JSON }}' > botconfig/config.json
|
||||
- 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"
|
||||
+3
-5
@@ -4,9 +4,7 @@ package-lock.json
|
||||
|
||||
# IDE files
|
||||
.vscode/
|
||||
.idea/
|
||||
|
||||
# local env files
|
||||
botconfig/config.json
|
||||
|
||||
# Large files
|
||||
sounds/
|
||||
# Environment variables
|
||||
.env
|
||||
@@ -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": "[",
|
||||
"defaultCommandCooldown" : 1,
|
||||
"statusChangeInterval": 8
|
||||
@@ -33,6 +33,6 @@ client.dmCommands = new Discord.Collection(); // all the private commands
|
||||
});
|
||||
|
||||
//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 */
|
||||
|
||||
Generated
+326
-977
File diff suppressed because it is too large
Load Diff
+1
-2
@@ -4,8 +4,7 @@
|
||||
"description": "Dat boi, the annoying discord bot",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "node --trace-warnings index.js",
|
||||
"stop": "sh ~/scripts/sshKill.sh"
|
||||
"start": "node --trace-warnings --env-file=.env index.js"
|
||||
},
|
||||
"author": "Tomato#6966 (author of this template), Ninluc",
|
||||
"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.
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.
Reference in New Issue
Block a user