mirror of
https://github.com/TotalFreedomMC/TotalFreedomBot.git
synced 2024-12-22 15:44:57 +00:00
Update events.py
This commit is contained in:
parent
04662bf765
commit
e20507df69
1 changed files with 11 additions and 2 deletions
13
events.py
13
events.py
|
@ -10,16 +10,25 @@ from datetime import datetime
|
|||
from discord.ext import commands
|
||||
from checks import *
|
||||
from functions import *
|
||||
|
||||
|
||||
from unicode import *
|
||||
|
||||
telnet_ip = "localhost"
|
||||
telnet_port = 22
|
||||
telnet_username = "root"
|
||||
telnet_password = "root"
|
||||
|
||||
class Events(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
||||
@commands.Cog.listener()
|
||||
async def on_ready(self):
|
||||
config = read_json('config')
|
||||
telnet_ip = config['TELNET_IP']
|
||||
telnet_port = config['TELNET_PORT']
|
||||
telnet_username = config['TELNET_USERNAME']
|
||||
telnet_password = config['TELNET_PASSWORD']
|
||||
|
||||
self.bot.reaction_roles = []
|
||||
self.bot.telnet_object = telnet(telnet_ip, telnet_port, telnet_username, telnet_password)
|
||||
self.bot.telnet_object.connect()
|
||||
|
|
Loading…
Reference in a new issue