mirror of
https://github.com/thewesker/Parkscord.git
synced 2025-12-20 04:11:06 -05:00
Add installation notes, channel options
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -3,3 +3,5 @@ config.json
|
|||||||
themeparks.db
|
themeparks.db
|
||||||
themeparks.db
|
themeparks.db
|
||||||
*.db
|
*.db
|
||||||
|
node_modules/
|
||||||
|
package-lock.json
|
||||||
|
|||||||
17
README.md
17
README.md
@@ -1,2 +1,19 @@
|
|||||||
# Parkscord
|
# Parkscord
|
||||||
Discord bot to display Theme Park queue times.
|
Discord bot to display Theme Park queue times.
|
||||||
|
# Installation
|
||||||
|
You will need Node.js version 16.5.0 or higher installed. I also assume you have git installed.
|
||||||
|
|
||||||
|
Create a discord bot and add it to your server.
|
||||||
|
|
||||||
|
`git clone https://github.com/thewesker/Parkscord`
|
||||||
|
|
||||||
|
`cd Parkscord`
|
||||||
|
|
||||||
|
`npm install`
|
||||||
|
|
||||||
|
Edit config_sample.json, providing your own bot token. Change the channel name (without the #) to the channel you'd like the bot to work in. You may also edit the prefix if you wish. When saving, change the filename to `config.json`.
|
||||||
|
|
||||||
|
`npm start`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
12
package.json
Normal file
12
package.json
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "Parkscord",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "Discord bot to display theme park queue times.",
|
||||||
|
"scripts": {
|
||||||
|
"start": "node parkscord.js"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"themeparks": "5.1.48",
|
||||||
|
"discord.js": "12.5.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -21,7 +21,7 @@ for (const park in ThemeParks.Parks) {
|
|||||||
client.on("ready", () => {
|
client.on("ready", () => {
|
||||||
console.log(`Logged in as ${client.user.tag}!`);
|
console.log(`Logged in as ${client.user.tag}!`);
|
||||||
});
|
});
|
||||||
var goodchannel = "bot_commands";
|
var goodchannel = config.channel;
|
||||||
client.on("message", (msg) => {
|
client.on("message", (msg) => {
|
||||||
if (msg.channel.name !== goodchannel) return;
|
if (msg.channel.name !== goodchannel) return;
|
||||||
else {
|
else {
|
||||||
|
|||||||
5
sample_config.json
Normal file
5
sample_config.json
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"prefix": "!q ",
|
||||||
|
"token": "discord_bot_token",
|
||||||
|
"channel": "channel_name"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user