Skip to content

petderek/discord-bot-thing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-bot-thing

About

This is a discord robit, mainly to learn how discord webhooks work.

For now, we're keeping it simple. It uses cron and a python3 script to post to the discord api

Its config file is expected to be in /etc/discordbot/config and it looks for messages in /etc/discordbot/wod.${day-of-week}.

Config files use the python configparser library. The config options are as follows:

# this is the webhook url you get from discord
webhook=https://example.com/blah

Dependencies

Your system needs to be running python3 and it needs dhooks installed via pip:

pip install dhooks

How to run

After creating the config and message files, you can run this like:

python bot.py

However, the intended use is to be invoked as a cron job.

About

learning how to discord bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages