1
0
Fork 0
mirror of https://gitlab.jonasled.de/jonasled/discordbot synced 2024-08-01 15:04:39 +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.utils import get
from discord import FFmpegPCMAudio
import sqlite3
from sqlite3 import connect
from time import sleep, time
from datetime import datetime, timedelta
from config import *
@ -12,7 +12,7 @@ polls = {}
bot = commands.Bot(command_prefix=prefix)
dbconnection = sqlite3.connect('database.db')
dbconnection = connect('database.db')
dbcursor = dbconnection.cursor()
try: #try to create the database tables, if it fails they were created previosly