countdown-bot

A Discord bot that runs countdown games and generates analytics
git clone https://git.ashermorgan.net/countdown-bot/
Log | Files | Refs | README

commit 3fe3c3887fe4bcfe54aec2ad660f7fba21003318
parent 81e2b50e59702f3f48dbf8fae20c6e55c601bfb1
Author: AsherMorgan <59518073+AsherMorgan@users.noreply.github.com>
Date:   Wed, 20 Jan 2021 17:50:56 -0800

Fix relative path issue in channel loader.

Diffstat:
Mbot.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bot.py b/bot.py @@ -8,7 +8,7 @@ import re # Load list of channels channels = [] -with open("channels.txt", "a+") as f: +with open(os.path.join(os.path.dirname(__file__), "channels.txt"), "a+") as f: f.seek(0) lines = f.readlines() for line in lines: