|
|
|
@ -1,10 +1,15 @@
|
|
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
|
|
|
|
|
# ./Emery.rb
|
|
|
|
|
# pkill Emery
|
|
|
|
|
require 'discordrb'
|
|
|
|
|
require 'tmpdir'
|
|
|
|
|
|
|
|
|
|
puts "---\nEmery PID is #{Process.pid}\nTo kill Emery simply {kill #{Process.pid}}\n---"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def emery_loadModules()
|
|
|
|
|
$commands = {}
|
|
|
|
|
puts '---'
|
|
|
|
|
# Yes this gets redefined. Why? Because I like having all my variables in one place but it also needs to be cleared again
|
|
|
|
|
File.foreach("modules/modules.txt", chop: true) { |line|
|
|
|
|
|
# For every line in the file, do below
|
|
|
|
@ -21,6 +26,7 @@ def emery_loadModules()
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
}
|
|
|
|
|
puts '---'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
token = File.read("token.txt")
|
|
|
|
|