Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _G_DataBaseTable = {}
- function save(database_table)
- _G_DataBaseTable = database_table;
- saveToFile(database_table);
- end
- function load()
- _G_DataBaseTable = readFromFile();
- end
- function onMessage(msg)
- if ( msg.hasText ) then
- if ( _G_DataBaseTable[msg.from.id]["isGloballyBanned"] ) then
- // the user is banned
- end
- end
- end
Add Comment
Please, Sign In to add comment