Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(){
- var bot= {
- version: "1.0.0",
- name: "Deobot",
- creator: "Deomys",
- start_time: new Date(),
- room_settings: {
- maximum_song_lenght: 6,
- lenght_skip: true,
- max_dc: 60,
- spam_guard: true,
- song_stat: true,
- welcome_user: true,
- },
- room: {
- user: [],
- },
- event: {
- chat: function(data){
- if(data.type === "message") {
- if(data.message[0] == "!") {
- API.moderateDeleteChat(data.chatID);
- API.sendChat("/me command received");
- }
- }
- },
- },
- connect_API: function(){
- API.on(API.CHAT, this.event.chat);
- API.chatLog("API connected!");
- },
- startup: function(){
- var u = API.getUser();
- if(u.permission < 2) return API.chatLog("You need to be at least bouncer to run the bot");
- this.connect_API();
- API.sendChat(name + " v" + this.version + " started!");
- },
- };
- API.chatLog("Script launched");
- bot.startup();
- }).call(this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement