discord.js-fetch v1.4.5
Discord bot template using javascript
Install:
npm i discord.js-fetchSupport:
- Moderator:
- ban: | ban a member
- bans: | view baned list
- chnick: | change nick name a member
- chrole: | change role a member
- deafen: | set deafen a member
- kick: | kick a member
- mute: | set mute a member
- move | move member to another voice channel
- timeout: | set timeout a member
- undeafen: | remove deafen a member
- unmute: | remove mute a member
- untimeout: | remove timeout a member- Music:
- join: | join your current voice channel
- leave: | leave current voice channel
- nplay: | see what track is playing
- pause: | Pause playing
- play: | play an url, find and play from a query
- queue: | see current queue
- resume: | resume playing
- setloop: | set repeated mode for your queue
- shuffle: | shuffle current queue
- skip: | skip current track to next track
- stop: | stop playing and leave voice channel- Ultility:
- ping: | get latency of your bot and API
- status: | get bot's status
- chat: | Ask Bing AI or Google BardUsage:
- Create
config.json
{
"name": "", (You can use that for your help command)
"prefix": "Your-prefix", (Only use if you want to use prefix command)
"token": "Your-Bot-Token",
"clientId": "Your-Bot-ClientId",
"__Secure_1PSID": "Your-cookie-__Secure-1PSID",
"__Secure_1PSIDTS": "Your-cookie-__Secure-1PSIDTS",
"cookie_U": "Your-cookie-_U",
"YOUTUBE_API_KEY": "Your-Youtube-API-key"
}- Run
node test/index.jsHow to get token and clientID:
- Token
Go to https://discord.com/developers/applications/
Chose your discord bot
Chose
BotChose
Reset Tokenand follow the directions, then copytokenGo to
config.pyPaste your Token to variable named
token
- CLientID
Go to https://discord.com/developers/applications/
Chose your discord bot
Copy
application IDvalueGo to
config.pyPaste your Token to variable named
clientID
How to get cookies for ai reponse:
- Bing AI
Go to https://bing.com/chat
Run your cookies extension
Copy value of cookies named
_UGo to
config.jsonPaste the cookies to
cookie_U
- Google Bard
Go to https://bard.google.com/
Run your
cookies extensionCopy values of cookies named
__Secure-1PSIDand__Secure-1PSIDTSGo to
config.jsonPaste your cookies value to
__Secure_1PSIDand__Secure_1PSIDTS
Get FFMPEG:
Go to https://ffmpeg.org/download.html
Download latest version for your OS system
Make sure that ffmpeg can run in your terminal or cmd. If you use Windows, you should add to Your environment variables