This is a bot I made to make looking up recommended setups for the game more convenient, since so many people use Discord to communicate. It has since become so much more than I'd initially planned, and should become much more in time.
= Command List =
[Use ;help <commandname> for details]
== Admin ==
;nickname :: Changes the bot's nickname on the server
;stats :: Shows the bot's stats
;showconf :: Shows the current configs for your server.
;setconf :: Used to set the bot's config settings.
== Misc ==
;event :: Used to make or check an event
;help :: Displays info about available commands.
;info :: Shows useful links and recent changes.
;time :: Used to check the time with the guild's configured timezone
== Star Wars ==
;raidteams :: Shows some teams that work well for each raid.
;modsets :: Shows how many of each kind of mod you need for a set.
;mods :: Shows some suggested mods for the specified character.
;faction :: Shows the list of characters in the specified faction.
;activities :: Shows the daily guild activites.
git
command line (Windows|Linux|MacOS) installedNode
Version 8.0.0 or higherA machine
to host it on. Want it to be online 24/7? Get a VPS.Some knowledge of node
if you want to modify it.
Firstly, you'll need to set up the bot account, so you can get the token and such. https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token
In a command prompt in your projects folder (wherever that may be) run the following:
git clone [email protected]:JeffreyMilner/SWGoHBot.git
Once finished:
- In the folder from where you ran the git command, run
cd SWGoHBot
and then runnpm install
- Rename
config.example.json
toconfig.json
- Edit
config.json
and enter your bot's token and other details as indicated.
{
"ownerid": "YourUserID",
"prefix": "YourPrefixGoesHere",
"token": "YourTokenGoesHere",
"defaultSettings": {
"adminRole": "Administrator",
"enableWelcome": false,
"welcomeMessage": "Say hello to {{user}}, everyone! We all need a warm welcome sometimes :D",
"useEmbeds": true,
"timezone": "America/Los_Angeles",
"announceChan": ""
}
}
To start the bot, in the command prompt, run the following command:
node swgohbot.js
If at any point it says "cannot find module X" just run
npm install X
and try again.
Special thanks to York for the started bot to base this on (https://github.com/AnIdiotsGuide/Tutorial-Bot/), to CrouchingRancor.com for all their mod suggestions, and to Morningstar-013 & Pete Butler, for their work in collecting a bunch of teams for the raids.