index — Deutsche-Haus-Bot @ 5dddac690d57fdb993c99f1bd48039573d09a084

Discord bot to dynamically create voice chats for clubs that boosters can create

test.py (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
import db
import asyncio

async def main():
    my_db = db.Database("test.db")
    await my_db.create_tables()
    await my_db.list_tables()
    print(await my_db.create_club("test channel2", 123, 23))
    print(await my_db.select_clubs())
    await my_db.add_member(3, 23)
    print(await my_db.select_clubs_of_member(3))

asyncio.run(main())