Compare commits
No commits in common. "ef5783248056d2e32b53a3f1fc4b123d87d20584" and "702f0ca119a4bdf0bfa9967509f650d33c2451b2" have entirely different histories.
ef57832480
...
702f0ca119
25
coin.rb
25
coin.rb
@ -6,14 +6,8 @@ require 'discordrb'
|
|||||||
MAX_COINS_PER_DAY = 4
|
MAX_COINS_PER_DAY = 4
|
||||||
COIN_TIMEOUT = 15
|
COIN_TIMEOUT = 15
|
||||||
SCOREBOARD = './scoreboard.yml'
|
SCOREBOARD = './scoreboard.yml'
|
||||||
<<<<<<< HEAD
|
|
||||||
|
|
||||||
PASTA='You know what? Im done, i am leaving, we were friendly talking about the subject. This crossed the line of "ok killer of joy" to "no fun allowed"'
|
PASTA='You know what? Im done, i am leaving, we were friendly talking about the subject. This crossed the line of "ok killer of joy" to "no fun allowed"'
|
||||||
=======
|
|
||||||
DUMBASS = 521596582962003968
|
|
||||||
DUMBASS_BOT = 1034966228755820575
|
|
||||||
COIN_EMOJI = '🪙'
|
|
||||||
>>>>>>> b24afe7 (give coin with react)
|
|
||||||
|
|
||||||
coin_state_active = false
|
coin_state_active = false
|
||||||
coins_offered_today = 0
|
coins_offered_today = 0
|
||||||
@ -106,25 +100,6 @@ next if not ENV['CUM_CHANNEL']
|
|||||||
event.respond "OHHHHHH IM GONNA CUM"
|
event.respond "OHHHHHH IM GONNA CUM"
|
||||||
end
|
end
|
||||||
|
|
||||||
bot.reaction_add do |event|
|
|
||||||
next unless event.emoji.name == COIN_EMOJI
|
|
||||||
reactor_coins = get_coin_count(event.user.id)
|
|
||||||
if reactor_coins == 0
|
|
||||||
event.respond("<@#{event.user.id}>, you're a poor shmuck!")
|
|
||||||
next
|
|
||||||
end
|
|
||||||
|
|
||||||
if event.message.author == event.user
|
|
||||||
event.respond("<@#{event.user.id}>, you can't give coins to yourself!")
|
|
||||||
next
|
|
||||||
end
|
|
||||||
|
|
||||||
increment_coin(event.message.author.id)
|
|
||||||
increment_coin(event.user.id, -1)
|
|
||||||
|
|
||||||
event.respond "<@#{event.message.author.id}>, you have been given a coin by <@#{event.user.id}>!"
|
|
||||||
end
|
|
||||||
|
|
||||||
bot.run(true)
|
bot.run(true)
|
||||||
|
|
||||||
loop do
|
loop do
|
||||||
|
Loading…
Reference in New Issue
Block a user