Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more bot stuff, and README stuff. #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ Heyo, this is CahBot Alpha! Where stuff is so experimental, the word "experiment
Y'know, it's hard to update this list every single time I update something, so just use `A^cmds` and figure it out, thanks!

#### For a cooler looking README blablahbla [here](https://github.com/CahBots/cahbot/blob/master/README.md)

# LITERALLY EVERYONE ELSE HAS CONTRIBUTED TO THIS FILE, SO I MIGHT AS WELL DO IT TOO. THIS BOT IS FUNKY WACK DOESN'T KNOW WHATS HAPPENING, JOIN DISCORD FOR HELP, HELP.
26 changes: 23 additions & 3 deletions code.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,35 @@
require 'open-uri'
require_relative 'config.rb'

bot = Discordrb::Commands::CommandBot.new token: configatron.token, client_id: 291_390_171_151_335_424, prefix: ['A^', '<@291390171151335424> '], ignore_bots: true
bot = Discordrb::Commands::CommandBot.new token: configatron.token, client_id: 291_390_171_151_335_424, prefix: ['A^', '<@291390171151335424> ', 'bruh', 'buh', 'moment'], ignore_bots: true

bot.bucket :normal, limit: 5, time_span: 15, delay: 3

bot.ready do |_event|
sleep 180
bot.game = 'Use A^cmds or A^info'
sleep 180
bot.game = "on #{bot.servers.count} servers!"
bot.game = "on #{bot.servers.count} servers!" # why is this the only line with double quotes? wouldn't using those everywere save on a bunch of `don\'t`s?
sleep 180
bot.game = 'cah.soarn.pro'
sleep 180
bot.game = 'cah.soarn.pro/noot.gif'
sleep 180
bot.game = 'bruh?'
sleep 180
bot.game = 'moment?'
sleep 180
bot.game = 'bruh moment.'
sleep 180
bot.game = 'certified buh'
sleep 180
bot.game = `certified bruh-momentum free`
sleep 180
bot.game = 'please activate windows'
sleep 180
bot.game = 'I\'ll think about it.'
sleep 180
bot.game = '2003cah, 2 years ago • aaaaaa'
redo
end

Expand Down Expand Up @@ -55,7 +75,7 @@
bot.command(:restart, help_available: false) do |event|
if event.user.id == 228_290_433_057_292_288
begin
event.respond ['Into the ***fuuuutttttuuuuurrrreeee***', 'Please wait...', 'How about n—', 'Can do :thumbsup::skin-tone-1:', 'Pong! Hey, that took... Oh wait, wrong command', 'Ask again at a later ti—'].sample
event.respond ['Into the ***fuuuutttttuuuuurrrreeee***', 'Please wait...', 'How about n—', 'Can do :thumbsup::skin-tone-1:', 'Pong! Hey, that took... Oh wait, wrong command', 'Ask again at a later ti—', 'Pong! Hey, that took...', 'do do DO do', 'no.', 'please don\'t pull a bruh mome'].sample
exec('bash restart.sh')
end
else
Expand Down