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:
parent
8adc06721e
commit
8aad52e1af
1 changed files with 2 additions and 2 deletions
4
bot.py
4
bot.py
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue