Acme utilities.

master
Astoria Floyd 2 years ago
parent c9a496d478
commit 62a2befb9d

@ -1,10 +1,15 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# ./Emery.rb
# pkill Emery
require 'discordrb' require 'discordrb'
require 'tmpdir' require 'tmpdir'
puts "---\nEmery PID is #{Process.pid}\nTo kill Emery simply {kill #{Process.pid}}\n---"
def emery_loadModules() def emery_loadModules()
$commands = {} $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 # 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| File.foreach("modules/modules.txt", chop: true) { |line|
# For every line in the file, do below # For every line in the file, do below
@ -21,6 +26,7 @@ def emery_loadModules()
end end
end end
} }
puts '---'
end end
token = File.read("token.txt") token = File.read("token.txt")

Loading…
Cancel
Save