Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Ciremun/discordbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shtcd discord bot

create, assign, delete discord server color roles
configure twitch live notifications in discord announcement channels

image

Install

Python 3

env

Variable Type Value
DISCORD_TOKEN str discord bot token, discord developer portal
CLIENT_ID str twitch application Client ID, create app in twitch developer console
CLIENT_SECRET str generate new secret in twitch dev console (under Client ID)
CLIENT_OAUTH str user OAuth token, twitchapps helps obtain
APP_ACCESS_TOKEN str server OAuth token twitch docs
CALLBACK_URL str server URL to catch webhook requests
DATABASE_URL str postgres connection URI postgres://{user}:{password}@{hostname}:{port}/{database-name}
SECRET str secret used to sign notification payloads
PORT int flask application port
DEFAULT_MODERATOR_ID int default bot moderator

src/config.py

Key Type Value
prefix str bot command prefix
embedHex6 str stream notification embed line color, six-digit HEX color
footerText str stream notification embed footer text
rolesLimit int guild color roles limit
notify bool fetch and send notifications?

commands

Command Description
colorinfo <#hex or rgb> get color image, rgb and hex
nocolor remove your color role
color <#hex or rgb> get color role, replace if exists
colors list created color roles
info uptime, channels, modlist

moderators

Command Description
nocolors delete all color roles
channel <channel_id> add/remove bot channel
notify <twitch username> <space separated channel IDs> add/remove/update twitch streams notify
mute <space separated mentions/userIDs> add/remove "Muted" role