This is a productivity/fun Discord bot made for Discord hack week. By Pineappl#5374. Written in JS, supported by Discord.js.
- Install the packages:
- Use
npm install
- Create a discord client
- follow this link
- Get the tokens for
- Discord client: See Application => Bot => Token
- YTapi token: link
- World Trading Data token: link
- Custom search engine id: link
- Yandex translate token: link
-
Create
.env
file and plug those tokens in like the.env.example
-
Add the bot to your server:
https://discordapp.com/api/oauth2/authorize?client_id=YOURCLIENTID&scope=bot
With YOURCLENTID replaced by your bot's id
=
: Evaluates an expressioncolor
: Gets a colordownload
: Downloads a song/video from youtubeencode
: Encode a message to morsehelp
: The help commandid
: Gets your/someone's idlatex
: Prints an expression in latex (returns an image)link
: Get the invitation linkmarket
: Checks status for stocks/indices/foreign exhanges via WorldTradingDatarandom
: Random simulations like dice/cards...search
: Search for images/videos/others via DuckDuckGo API/Google Custom Search Engine/Youtube Searchsetprefix
: Change the prefix for this bottranslate
: Translate a messageuserinfo
: Get a user's information
- The default prefix is
p=
, you can usep=setprefix [new prefix]
to change it - To get help for each command use
p=help [command]
- I still have a lot of things I want to add but a week is not a lot of time
- If you want, I made a bot already which you can use to test the commands. Here is the invitation link:
https://discordapp.com/oauth2/authorize?client_id=592806559135039488&permissions=117760&scope=bot