An open API service indexing awesome lists of open source software.

https://github.com/up2code/sample-gacha-bot

Simple example for play pulling gacha with bot in discord
https://github.com/up2code/sample-gacha-bot

Last synced: 7 months ago
JSON representation

Simple example for play pulling gacha with bot in discord

Awesome Lists containing this project

README

          

# sample-gacha-bot
Simple example for play pulling gacha with bot in discord

**[NODEJS](https://nodejs.org/en/) must be installed**

# Getting started
```javascript
$ git clone https://github.com/up2code/sample-bot.git
$ npm install
```
Find or create your discord bot token [here](https://discordapp.com/developers/applications/me)
and replace at this login parameter to your token
```javascript
bot.login('YOUR BOT TOKEN HERE!!!');
```
Make sure you have assign your bot in to your server. You can use below URL for bot to login into your server. Replace to your bot client id. You can found in your discord app info [here](https://discordapp.com/developers/applications/me)
```
https://discordapp.com/oauth2/authorize?&client_id=&scope=bot&permissions=0
```
Edit code as your want. When everything is done, Let's TRY!!
```javascript
$ npm start
```

Open discord and go to server which you had assigned bot, Then typing _gacha_ and see the result.