Minor changes

This commit is contained in:
Matthieu Grieger 2014-11-15 21:02:16 -08:00
parent 4506801b39
commit dc1d07b850
2 changed files with 13 additions and 1 deletions

View file

@ -1,7 +1,9 @@
# MumbleDJ v2
# By Matthieu Grieger
# mumbledj.rb
require "mumble-ruby"
require_relative "config"
# Class that defines MumbleDJ behavior.
class MumbleDJ
@ -51,10 +53,16 @@ class MumbleDJ
# Sets various callbacks that can be triggered during the connection.
def set_callbacks
@client.on_text_message do |message|
# TODO: Call message parser here
self.parse_message(message)
end
end
# Parses messages looking for commands, and calls the appropriate
# methods to complete each requested command.
def parse_message(message)
end
# Safely disconnects the bot from the server.
def disconnect
@client.disconnect

View file

@ -1,3 +1,7 @@
# MumbleDJ
# By Matthieu Grieger
# run_bot.rb
require_relative "mumbledj"
require 'thread'