mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2025-07-04 12:15:24 +02:00
Partial discordbot work
This commit is contained in:
17
discordbot/titanembeds/bot.py
Normal file
17
discordbot/titanembeds/bot.py
Normal file
@ -0,0 +1,17 @@
|
||||
from config import config
|
||||
import discord
|
||||
|
||||
client = discord.Client()
|
||||
|
||||
@client.event
|
||||
async def on_ready():
|
||||
print('Titan -- DiscordBot')
|
||||
print('Logged in as the following user:')
|
||||
print(client.user.name)
|
||||
print(client.user.id)
|
||||
print('------')
|
||||
await test()
|
||||
|
||||
async def test():
|
||||
from titanembeds.database import db, Guilds, session
|
||||
session.query(Guilds).all()
|
Reference in New Issue
Block a user