Database is now centralized. All data is stored in tables within the database table,

which is automatically saved. Please be sure to always stop the bot with /halt to
prevent data loss.
This commit is contained in:
topkecleon
2016-02-21 14:28:40 -05:00
parent 03ce363c98
commit 02a7d411fa
12 changed files with 237 additions and 223 deletions

View File

@ -139,7 +139,7 @@ resolve_username = function(target)
local input = tostring(target):lower()
if input:match('^@') then
local uname = input:gsub('^@', '')
return usernames[uname]
return database.usernames[uname]
else
return tonumber(target) or false
end