Skip to content

A discord bot that will take keys out of google sheets, and give those keys to each unique user that gets reacted to with a certain emoji in a certain channel, and update the sheet.

Notifications You must be signed in to change notification settings

BNeutral/discordKeyBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Setup

  • Add the bot to your server using the link created at the discord dev page for the app, under OAuth2 submenu
  • Modify config.py to your liking
  • Create a secrets.py file with the content:
BOT_TOKEN = <your bot token here, as a string. for example "AabB123...">
SPREADSHEET_IDS = <your spreadsheet ids here, as a list of strings, for example ["AabB123...","CabB123..."]>
  • Spreadsheet IDs can be found in the url. Bot token in the discord dev page.

Run

python ./keyboy.py

Usage

React with a key emoji (or whichever you set up in cofig) to a message in the keybeg channel to automatically send that user a key.

  • If the delivery is successful the bot will react with a thumbs up, and log the result in the logs channel
  • In case of failure the bot may reply in the channel to the user if they have dms blocked or left the server, and laso log the result in the logs channel

Use !reload in the commands channel to reload keys during runtime.

About

A discord bot that will take keys out of google sheets, and give those keys to each unique user that gets reacted to with a certain emoji in a certain channel, and update the sheet.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages