malte843 / discordbot-for-scapi

Discordbot for use with my Socialclub API project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discordbot for Socialclub API

This was build using nodejs v16.17.1

To use this you need https://github.com/jdjdpsjsjdlsk/rsg-socialclub-api setup.

Setup:

git clone https://github.com/jdjdpsjsjdlsk/discordbot-for-scapi.git
cd discordbot-for-scapi
npm install

Rename .env.example to .env and fill your Bottoken TOKEN, CLIENTID and the url+port from your api if you changed it.

For first start run node deploy-commands.js or npm run updateCommands to register commands to discord. You only need to do this once or if you happen to add commands or change description or something.

Start the script with npm run start or node . and wait for the message that says Bot is online!

To test the bot run /rid [player] on discord server where your bot is in.

Commands also work in dm with bot

Preview of /rid command:

RID Bot

About

Discordbot for use with my Socialclub API project

License:MIT License


Languages

Language:JavaScript 99.5%Language:Shell 0.5%