Jamie, the Bot
There is not much to say about Jamie as he's currently pretty much WIP.
He's a Slack Bot written in Ruby using the slack-ruby-bot framework.
Setup Process
For Security Reasons, we've gitignored the .env
file.
What's that? Well that's basically a file where we will load Settings to be set as Environment Variables during our code.
Create it and add the Content SLACK_API_TOKEN=your-token
.
Also edit the settings in bot.rb:
ADMIN_USERS = [ "U0P7BK890" ];
StartCapital = 1000
ABOUT=...
Please clearly state that you're not Jamie.
The Bot will automatically listen to the Name you gave him during API TOKEN GENERATION, so you need to edit our Aliases found in jaime.rb
(which is btw the main file)
SlackRubyBot.configure do |config|
config.aliases = ['jaime', 'jamie?', 'jaime?']
end
Use this to catch up typos and the "?" and stuff.
How to Build/Start
First install the dependencies using sudo gem install -g Gemfile
however bundler install
should work aswell.
Note: Sometimes you receieve compilation errors due to missing C-Header Files on your System. Use Google for that.
Then simply call ./jaime.rb
or ruby jaime.rb
and see what happens.
If you're not debugging, we recommend appending > /dev/null
so it's not so spammy :)