db module

class db.DB(bot=None)[source]

Bases: object

Handles connecting to the database and reading and writing data. Currently supports only MySQL/mariadb, and that probably needs to change.

age = datetime.datetime(2023, 8, 16, 22, 20, 13, 438105)
e(sql)[source]
getImgs()[source]
getSeen(who)[source]
insert(where, which, what)[source]
insertImg(user, url, channel)[source]
isAdmin(username)[source]
replace(where, which, what)[source]
select(where, what)[source]
updateSeen(who, statement, event)[source]