use custom channel

This commit is contained in:
Mylloon 2021-07-27 03:19:41 +02:00
parent 52612824e6
commit 80168f0cb6

View file

@ -4,8 +4,8 @@ from utils.utils import load
class Bot(commands.Bot): class Bot(commands.Bot):
def __init__(self): def __init__(self):
self.keys = load(["ACCESS_TOKEN", "PREFIX"]) self.keys = load(["ACCESS_TOKEN", "PREFIX", "CHANNEL"])
super().__init__(token=self.keys["ACCESS_TOKEN"], prefix=self.keys["PREFIX"], initial_channels=['mylloon']) super().__init__(token=self.keys["ACCESS_TOKEN"], prefix=self.keys["PREFIX"], initial_channels=[f'{self.keys["CHANNEL"]}'])
async def event_ready(self): async def event_ready(self):
print(f"Logged in as {self.nick}") print(f"Logged in as {self.nick}")