Nestor

Mon petit bot Discord
Log | Files | Refs

commit 3defdfdd99eef6610d6b61c4faf5e05a5002ebad
parent 31c86a302c2714ecfc1f3b91dc40941566706a97
Author: Doshirae <romainchaix@protonmail.com>
Date:   Fri, 28 Apr 2017 23:19:03 +0200

Added SALOOoOoooOOoOOOPE

Diffstat:
nestor.rb | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/nestor.rb b/nestor.rb @@ -185,14 +185,14 @@ end # }}} # Eval command that allows to paste code directly in the channel -# bot.command(:eval, help_available: false) do |event, *code| -# break unless event.user.id == 66237334693085184 # Replace number with my ID -# begin -# eval code.join(' ') -# rescue -# 'An error occurred 😞' -# end -# end +bot.command(:eval, help_available: false) do |event, *code| + break unless event.user.id == 307626361626034177 # Replace number with my ID + begin + eval code.join(' ') + rescue + 'An error occurred 😞' + end +end # command taht mention # bot.mention do |event|