1
0
Fork 0
mirror of https://gitlab.jonasled.de/jonasled/discordbot synced 2024-10-21 08:49:30 +02:00

changed sqlite import

This commit is contained in:
Jonas Leder 2020-04-02 20:57:04 +02:00
parent 8adc06721e
commit 8aad52e1af

4
bot.py
View file

@ -3,7 +3,7 @@ import discord
from discord.ext import commands from discord.ext import commands
from discord.utils import get from discord.utils import get
from discord import FFmpegPCMAudio from discord import FFmpegPCMAudio
import sqlite3 from sqlite3 import connect
from time import sleep, time from time import sleep, time
from datetime import datetime, timedelta from datetime import datetime, timedelta
from config import * from config import *
@ -12,7 +12,7 @@ polls = {}
bot = commands.Bot(command_prefix=prefix) bot = commands.Bot(command_prefix=prefix)
dbconnection = sqlite3.connect('database.db') dbconnection = connect('database.db')
dbcursor = dbconnection.cursor() dbcursor = dbconnection.cursor()
try: #try to create the database tables, if it fails they were created previosly try: #try to create the database tables, if it fails they were created previosly