mirror of
https://github.com/Octech2722/jeevesbot.git
synced 2026-02-04 02:46:37 -06:00
19 lines
573 B
Python
19 lines
573 B
Python
import discord
|
|
from discord.ext import commands
|
|
|
|
class BotReady(commands.Cog):
|
|
|
|
def __init__(self, client):
|
|
self.client = client
|
|
|
|
@commands.Cog.listener()
|
|
async def on_ready(self):
|
|
print('Logged in as:')
|
|
print(f'Username: {self.client.user.name}')
|
|
print(f'User ID: {self.client.user.id}')
|
|
print(f'Avatar URL: {self.client.user.avatar_url}')
|
|
print('\nBot is ready') #print "Bot is ready" to the terminal
|
|
print('\n=========BEGIN USE LOGS=========\n')
|
|
|
|
def setup(client):
|
|
client.add_cog(BotReady(client)) |