From 8aad52e1af005df9bd83329962a9b175505fe582 Mon Sep 17 00:00:00 2001 From: Jonas Leder Date: Thu, 2 Apr 2020 20:57:04 +0200 Subject: [PATCH] changed sqlite import --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 8a87455..c4f4744 100644 --- a/bot.py +++ b/bot.py @@ -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