Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrfastzombie/beanbotjs
A stupid Discord bot themed around beans. I made this to explore the Discord-JS API.
https://github.com/mrfastzombie/beanbotjs
beans bot discord discord-bot discord-js javascript
Last synced: 2 days ago
JSON representation
A stupid Discord bot themed around beans. I made this to explore the Discord-JS API.
- Host: GitHub
- URL: https://github.com/mrfastzombie/beanbotjs
- Owner: MrFastZombie
- License: mit
- Created: 2020-02-20T03:27:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-01T22:54:58.000Z (almost 2 years ago)
- Last Synced: 2023-03-10T03:52:13.864Z (almost 2 years ago)
- Topics: beans, bot, discord, discord-bot, discord-js, javascript
- Language: JavaScript
- Homepage:
- Size: 11.1 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BeanBot
A discord bot themed around beans. Yes, beans. This bot is more of a personal project I have used to learn about JavaScript and to add some fun commands to my friend's server, but anyone is free to check out the code or use the bot for their own projects, just keep in mind that the code may not be perfect.
## How to install
1. Make sure you have Node.JS installed and be sure to install the included Windows build tools.
2. Clone this repository.
3. Navigate to the folder repository's in a CMD and type `npm install`, it will install the dependencies.
4. Create a .env file in the same directory as bot.js and follow the .env guide below. Just name it .env.
5. Run the command registration script by running `npm run deploy-commands`. Note that this only registers to the one or two guilds specified in the .env. This bot is not yet written to exist on many servers.
6. Use `run.bat` or navigate to the folder with `bot.js` with CMD and type `node bot.js` to run. Please note that the bat file may be able to reboot from a crash, but running it directly with the command line instead may not.## How to create a .env
When you have created the .env (NOT AS A .TXT), use this as a template.
**DISCORD_GUILD_IDS** is for registering commands to test or personal servers instantly by running the command registration script. They should be seperated by a comma and a space, so that they can be loaded as an array for the command registration script. Do not leave out the space after each comma.**DISCORD_TOKEN** is your bot token. **DISCORD_USER_ID** is your bot's user ID.
```env
# .env
DISCORD_TOKEN=YOURTOKENHERE
DISCORD_GUILD_IDS="GUILDID1, GUILDID2, GUILDID3"
DISCORD_USER_ID="BOT'S USER ID HERE"
```[Follow this guide to get your token.](https://www.writebots.com/discord-bot-token/)