Skip to content

Commit 61eaa3a

Browse files
committed
Cleaner token handling, config update, package-lock update
1 parent a0de8c3 commit 61eaa3a

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ node_modules/
1919
.env
2020
.config
2121

22+
.token.json

bot.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Core bot setup
22
require('./randomUtil')
33
const fs = require('fs')
4-
const config = require('./config')
4+
const config = require('./config.json')
5+
const { token } = require('./.token.json')
56
const discord = require("discord.js")
67
const client = new discord.Client()
78

@@ -87,4 +88,4 @@ client.on('message', msg => {
8788
});
8889

8990
// Turning the key and revving the bot engine
90-
client.login(config.token)
91+
client.login(token)

config.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
2-
"version": "1.1.2",
3-
"releasenotes": "Light update for cleaner code, fixing some output issues",
2+
"version": "1.1.3",
3+
"releasenotes": "Easier token handling",
44
"issuelink": "https://github.com/jakethedev/tavernbot/issues",
5-
"token": "hunter2",
65
"botkey": "!",
7-
"activeChannels": ["golemworks", "bot", "botspam"],
6+
"activeChannels": ["golemworks", "bot", "botspam", "unnamed-campaign"],
87
"gameStatus": "tavernbot | !help for info"
98
}

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)