diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0e8b835..529d549 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -18,8 +18,8 @@ - - + + @@ -28,8 +28,8 @@ - - + + @@ -269,12 +269,12 @@ - - - - - - - - @@ -350,10 +342,18 @@ + + + + + + + + - - + + diff --git a/Janitor.rb b/Janitor.rb index 6b1b7cb..b7f9eaa 100644 --- a/Janitor.rb +++ b/Janitor.rb @@ -31,7 +31,6 @@ class Janitor if global == true return @ts.command('servernotifyregister', event: 'textserver')[0] else - move_self('218') return @ts.command('servernotifyregister', event: 'textchannel', id: 218 )[0] end end diff --git a/notification.rb b/notification.rb index 1d2745c..f0af998 100644 --- a/notification.rb +++ b/notification.rb @@ -4,15 +4,15 @@ i = 1 jan = Janitor.new + jan.move_self('218') + while (i > 0) begin - if i > 0 - return_report = jan.listen(false) + return_report = jan.listen(false) - invokerid = return_report['invokerid'] - cmd = return_report['msg'] - end + invokerid = return_report['invokerid'] + cmd = return_report['msg'] puts cmd + " - " + invokerid.to_s if cmd == '!help'