File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "email" : " email of the discord account here" ,
3
- "password" : " password of the discord account here" ,
2
+ "email" : " email of the discord account here if using a user account" ,
3
+ "password" : " password of the discord account here if using a user account" ,
4
+ "bot_token" : " bot token if using a bot account" ,
5
+ "client_id" : " client id if using a bot account and you want people to be able to invite it to their server" ,
4
6
"youtube_api_key" : " create one here https://console.developers.google.com" ,
5
7
"google_custom_search" : " follow instructions at https://stackoverflow.com/questions/34035422/google-image-search-says-api-no-longer-available" ,
6
8
"imgflip_username" : " https://imgflip.com/ username" ,
Original file line number Diff line number Diff line change @@ -639,6 +639,16 @@ var commands = {
639
639
}
640
640
}
641
641
} ;
642
+
643
+ if ( AuthDetails . hasOwnProperty ( "client_id" ) ) {
644
+ commands [ "invite" ] = {
645
+ description : "generates an invite link you can use to invite the bot to your server" ,
646
+ process : function ( bot , msg , suffix ) {
647
+ msg . channel . sendMessage ( "invite link: https://discordapp.com/oauth2/authorize?&client_id=" + AuthDetails . client_id + "&scope=bot&permissions=470019135" ) ;
648
+ }
649
+ }
650
+ }
651
+
642
652
try {
643
653
var rssFeeds = require ( "./rss.json" ) ;
644
654
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments