You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[Youtube Data API](https://developers.google.com/youtube/v3)
21
23
@@ -33,22 +35,25 @@ These steps provide a good walkthrough of creating and running a Discord bot: ht
33
35
1. Open up the following URL, replacing the CLIENT_ID and permissions with your own values: https://discordapp.com/oauth2/authorize?&client_id=CLIENT_ID&scope=bot&permissions=0
34
36
1. On this GitHub page click on Code -> Download ZIP
35
37
1. Unzip the repository code somewhere on your machine
36
-
1. Open up the windows CMD prompt and run as administrator (or whatever you use to run code)
37
-
1. Change directory to the directory where the bot's code resides
38
-
1. Optional if you run into cache issues with the following three commands: npm cache clean --force
39
-
1. Run the following: npm install --global pm2
38
+
1. Open up the Windows CMD prompt and run as administrator or open up a Linux terminal
39
+
1. Change directory to where the downloaded code resides
40
40
1. Run the following: npm install
41
-
1.The above should work with the package.json, but if you want to get it working manually, run: npm install discord.io winston plex-api howlongtobeat itad-api-client-ts discord.js popyt pm2 https://github.com/woor/discord.io/tarball/gateway_v6
41
+
1.Optional: if you run into cache issues use the following: npm cache clean --force
42
42
1. Obtain the Plex token of your server by referencing the following link: https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/
43
43
1. Obtain an OMDb API Key from https://www.omdbapi.com/apikey.aspx
44
44
1. Register an application and obtain an Imgur client id and secret from https://api.imgur.com/oauth2/addclient
45
45
1. Obtain an ITAD API Key by setting up an account and creating a new application at https://isthereanydeal.com/dev/app
46
46
1. Obtain a Youtube API Key by setting up an account and creating a new application at https://console.developers.google.com/apis/credentials and enable the YouTube Data API v3 at https://console.developers.google.com/apis/api/youtube.googleapis.com/overview
47
47
1. Update config.js with the client id, client secret, discord token, plex id, plex token, username, password, plex token, plex server hostname, plex server port, omdb api key, imgur client id, imgur client secret, the id of the imgur album you wish to use, itad key, and your Youtube API key. Some of these are optional depending on what functionality you want to use.
48
48
1. In Discord, go to User Settings > Appearance, enable Developer Mode, right-click your username, Copy ID, paste that number into USERID in config.js in the ownerId row
49
-
1. Run the following: pm2 start bot.js
49
+
1. Run the following: node start bot.js
50
+
1. If you wish to use pm2 to run the bot and ensure it restarts automatically from crashes, run the following: pm2 start bot.js
50
51
1. Voila, you can now start to issue commands in your discord server and test out if the bot is working right
0 commit comments