i was creating my own discord bot and for some reason i allways sent me output when i ran my command
local variable referenced 'thing' before assignment
and in these lines of code it told me that 'thing' is not defined
options = starter_thing
if thing in db.keys():
options = options + db["thing"]
and
def update_thing(thing_message):
if thing in db.keys():
thing = db["thing"]
thing.append(thing_message)
db["thing"] = thing
else:
db["thing"] = [thing_message