discord / airhornbot Goto Github PK
View Code? Open in Web Editor NEWThe only bot for Discord you'll ever need.
Home Page: https://airhorn.solutions
The only bot for Discord you'll ever need.
Home Page: https://airhorn.solutions
It's currently hosted on the same VM as the bot itself. I am actively working on it.
Hey, when I'm trying to do the go get command I get this:
https://gyazo.com/e0398cba0ab88c71cf07dc796c225036
Please help me with this.
I can't test it right now because the bot is kill, but we've noticed that all three times it died it was trying to play one of that command's sounds. Thought it was worth mentioning just in case this is what's causing people to be unable to use the bot.
Edit: (Just tested it in a friend's server that's USA based and I went through every command just fine...)
Maybe I'm missing something but is there a way to get the bot to output all of the available commands?
Hi. I would like to recommend some way of managing who can use !airhorn and the other commands, and who can not. The Mee6 bot has this kind of system, where you can configure the perms for who can use Moderator permissions by adding the permitted roles to the list of allowed roles. This would be handy too for the Airhorn Solutions bot, as i don't exactly like people that come once onto the server, to use the Airhorn bot, especially when they end up spamming it, which is really annoying. I want them first be able to use it when i add them to a specific rank, or if i use the XP/Level system from the Mee6 bot.
Hi,
I had a lot of error but finally managed to get it almost working :
When I run !airhorn, this appears on my ssh client
INFO[0000] Connecting to redis... INFO[0000] Starting discord session... INFO[0000] AIRHORNBOT is ready to horn it up. INFO[0000] Recieved READY payload INFO[0007] Playing sound play="&{196702234929528832 269943975023083520 140509252472012800 0xc820018600 <nil> false}"
The bot is connecting to the channel, nothing happens, and then it just get out.
Tried reading the cmd page for the bot, but couldn't really make sense of how things are concatenated off of the ! modifier.
Every about 3 times we use the bot the airhorn sound gets choppy/laggy.
When I try to 'make static' I get this error:
[00:16:44] Error: Cannot find module '../../audio/airhorn_default.wav'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (Constants.js:40:14)
at Module._compile (module.js:409:26)
at loader (C:\Users\Mathboy19\Documents\Go\go\src\github.com\hammerandchisel
\airhornbot\static\node_modules\babel-register\lib\node.js:126:5)
at Object.require.extensions.(anonymous function) [as .js] (C:\Users\Mathboy
19\Documents\Go\go\src\github.com\hammerandchisel\airhornbot\static\node_modules
\babel-register\lib\node.js:136:7)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
make: *** [gulp] Error 1
And I noticed that 'airhorn_default.wav' was replaced with 'airhorn_default.dca'
Any help would be appreciated.
Rest in peace http://i.imgur.com/UUdyKhV.png
I am following the README for installing things on my linux machine and when it comes to installing the webserver portion of the bot, I am having issues and I can't figure out what I'm missing to proceed.
The README says to install the webserver run go install github.com/hammerandchisel/airhornbot
and I am returned with the following:
dlennon@debianLinux:~$ go install github.com/hammerandchisel/airhornbot can't load package: package github.com/hammerandchisel/airhornbot: no buildable Go source files in /home/dlennon/work/src/github.com/hammerandchisel/airhornbot
I alter that command to be go install github.com/hammerandchisel/airhornbot/cmd/webserver
just like I was installing the bot and I am presented with:
work/src/github.com/hammerandchisel/airhornbot/cmd/webserver/web.go:9:2: cannot find package "github.com/antage/eventsource" in any of: /usr/local/go/src/github.com/antage/eventsource (from $GOROOT) /home/dlennon/work/src/github.com/antage/eventsource (from $GOPATH) work/src/github.com/hammerandchisel/airhornbot/cmd/webserver/web.go:11:2: cannot find package "github.com/gorilla/handlers" in any of: /usr/local/go/src/github.com/gorilla/handlers (from $GOROOT) /home/dlennon/work/src/github.com/gorilla/handlers (from $GOPATH) work/src/github.com/hammerandchisel/airhornbot/cmd/webserver/web.go:12:2: cannot find package "github.com/gorilla/sessions" in any of: /usr/local/go/src/github.com/gorilla/sessions (from $GOROOT) /home/dlennon/work/src/github.com/gorilla/sessions (from $GOPATH) work/src/github.com/hammerandchisel/airhornbot/cmd/webserver/web.go:13:2: cannot find package "golang.org/x/oauth2" in any of: /usr/local/go/src/golang.org/x/oauth2 (from $GOROOT) /home/dlennon/work/src/golang.org/x/oauth2 (from $GOPATH)
I have installed Redis. I guess I am misreading the whole README for installation.
Something about it is garbled towards the end?
Issue:
src/github.com/hammerandchisel/airhornbot/cmd/bot/bot.go:709: discord.ShardID undefined (type *discordgo.Session has no field or method ShardID)
src/github.com/hammerandchisel/airhornbot/cmd/bot/bot.go:710: discord.ShardCount undefined (type *discordgo.Session has no field or method ShardCount)
src/github.com/hammerandchisel/airhornbot/cmd/bot/bot.go:712: discord.ShardCount undefined (type *discordgo.Session has no field or method ShardCount)
src/github.com/hammerandchisel/airhornbot/cmd/bot/bot.go:713: discord.ShardCount undefined (type *discordgo.Session has no field or method ShardCount)
Upon running "go get github.com/hammerandchisel/airhornbot/cmd/bot"
Using Go 1.6.2
When giving the bot a command immediately after the bot disconnects from the voice channel will cause the bot to rejoin the voice channel, fail to play anything and stay in there until you shut the bot down.
←[36mINFO←[0m[0014] Playing sound ←[36mplay←[0m=
"&{193867648700776448 216770276178919424 143428648693661696 0xc042030500 <nil> f
alse}"
←[31mERRO←[0m[0025] Failed to play sound ←[31merror←[0m
="timeout waiting for voice"
Possible to have a docker image created?
Sometimes after using it, the bot stays in a Vocal Channel and we cant use it.
The bot also seems very laggy, it makes sizzled sounds as if it had connection problem or something like that (a !ping command to check the ping between us and the bot could be great)
Going to look at this after the website.
This command generates as soon as I play a sound using !airhorn:
2016/09/23 01:06:26 HTTP 401 Unauthorized, {"code": 0, "message": "401: Unauthorized"}
2016/09/23 01:06:27 [DG0] wsapi.go:524:onVoiceServerUpdate() onVoiceServerUpdate voice.open, Did not receive voice Session ID in time.
ERRO[0045] Failed to play sound
error=Timeout waiting for voice.
The bot will enter the voice channel, make no noise, then get stuck in the channel. It has the correct channel ID / userID / Guild ID. The bot has proper permissions to join voice and use voice.
Hi there !
I'm not trying to be mean, but your readme/usage guide is kinda light on how to make the bot work easily. However, I tried with my -limited- knowledge and installed everything that this bot needed, but I'm totally lost when it comes to launch the bot or the server.
I don't get these:
"bot -r "localhost:6379" -t "MY_BOT_ACCOUNT_TOKEN" -o OWNER_ID"
"./airhornweb -r "localhost:6379" -i MY_APPLICATION_ID -s 'MY_APPLICATION_SECRET"".
What am i supposed to do to at this point ? Where to run these ?
Big noob question I guess, but I really like this bot it's so much fun, so I hope it will work on my server one day.
Have trying !airhorn in Voice channel but ntg happened. try to kick and add Airhorn back but still having the same issuses. please help. thank you!
I have no idea how this happened, but the airhorn bot will no longer join voice chat when calling !airhorn after a night of repeated calling.
installing the bot gives the following error on line 464 in bot.go file.
cannot convert nil to type bool
if event.Guild.Unavailable != nil { return }
I can't solve my problems which require airhorns. We have tried removing and adding him multiple times but it seems he is out of gas.
Can you please restart the bot, its stuck on the voice channel and does not respost to any command.
Thank you.
I'm trying to run it in a digital ocean droplet using Ubuntu 15.10 and when I'm getting the bot with the command
go get github.com/hammerandchisel/airhornbot/cmd/bot
Appears this message
running gcc failed: fork/exec /usr/bin/gcc: cannot allocate memory
Any idea why is this happening? I'm new on Go but very interested on learning more about it and your project seems like an excelent example.
I know there are JS scripts (foreverjs).
What can I use for this bot?
example: http://noot.space/noot.mp4
Hi,
could you please make a bot like the airhorn bot but with Pingus "Noot Noot"!
Tim
As much as my server loves the airhorn bot, some chose to abuse the usage of the bot, making the bot over-used or just to annoy other users. It would be really great if there was a way to set up a cool-down so that each command can only be used max e.g. each 5th minute, or make the bot simply ignore certain users set by a server admin.
So I just added this bot to my discord server and every time we use one of the airhorn commands we can hear it, but very laggy/choppy. My server region is Central Europe so I don't see a problem there.
There were some connectivity issues with voice the other night and airhornbot was summoned in the midst of it. Airhornbot was stuck trying to make some noise in a voice channel but ended up sticking around indefinitely because it seems like he couldn't deliver the voice payload.
The solution I was given to deal with the connectivity issue was to switch server regions temporarily. While all the users had their voice communications restored after doing this, airhorn bot stuck around a little longer and then disconnected. Attempting to !airhorn
after this resulted in airhornbot ignoring the command entirely. Even kicking and letting airhornbot rejoin the channel didn't fix anything.
whenever i open the link it gives a 404 error. help?
I am interested with working on my own Discord bot based on this bot, but I cannot find any support, documentation, or info on the DCA0 format. How would I go about converting files to this format? Thanks!
Bot doesnt recognize the command anymore..
Its online, but its like a dead person. Does nothing.
Did something change?
While trying to download onto the folder is get the following errors:
# runtime C:\Go\src\runtime\mstkbar.go:151:10: debug.gcstackbarrieroff undefined (type struct { allocfreetrace int32; cgocheck int32; efence int32; gccheckmark int32; gcpacertrace int32; gcshrinkstackoff int32; gcrescanstacks int32; gcstoptheworld int32; gctrace int32; invalidptr int32; sbrk int32; scavenge int32; scheddetail int32; schedtrace int32 } has no field or method gcstackbarrieroff) C:\Go\src\runtime\mstkbar.go:162:24: division by zero C:\Go\src\runtime\mstkbar.go:162:43: invalid expression unsafe.Sizeof(composite literal) C:\Go\src\runtime\mstkbar.go:162:44: undefined: stkbar C:\Go\src\runtime\mstkbar.go:212:4: gp.stkbar undefined (type *g has no field or method stkbar) C:\Go\src\runtime\mstkbar.go:213:15: gp.stkbar undefined (type *g has no field or method stkbar) C:\Go\src\runtime\mstkbar.go:216:23: undefined: stackBarrierPC C:\Go\src\runtime\mstkbar.go:226:28: gp.stkbarPos undefined (type *g has no field or method stkbarPos) C:\Go\src\runtime\mstkbar.go:227:19: gp.stkbarPos undefined (type *g has no field or method stkbarPos) C:\Go\src\runtime\mstkbar.go:248:41: undefined: stkbar C:\Go\src\runtime\mstkbar.go:227:19: too many errors
The bot worked just once.
After that first, I tried to summon him, he joined the chan without making any sound and stayed in here. I kicked him, removed role and readd. But since then, he wont do anything. He just stay connected...
time="2017-02-18T18:20:19+03:00" level=info msg="VOICE: " play=&{237264976690151424 237264976690151425 247635258567032833 0xc4200163c0 false}
error opening dca file : open audio/airhorn_default.dca: no such file or directory
error opening dca file : open audio/airhorn_reverb.dca: no such file or directory
error opening dca file : open audio/airhorn_spam.dca: no such file or directory
error opening dca file : open audio/airhorn_tripletap.dca: no such file or directory
error opening dca file : open audio/airhorn_fourtap.dca: no such file or directory
error opening dca file : open audio/airhorn_distant.dca: no such file or directory
error opening dca file : open audio/airhorn_echo.dca: no such file or directory
error opening dca file : open audio/airhorn_clownfull.dca: no such file or directory
error opening dca file : open audio/airhorn_clownshort.dca: no such file or directory
error opening dca file : open audio/airhorn_clownspam.dca: no such file or directory
error opening dca file : open audio/airhorn_highfartlong.dca: no such file or directory
error opening dca file : open audio/airhorn_highfartshort.dca: no such file or directory
error opening dca file : open audio/airhorn_midshort.dca: no such file or directory
error opening dca file : open audio/airhorn_truck.dca: no such file or directory
error opening dca file : open audio/another_one.dca: no such file or directory
error opening dca file : open audio/another_one_classic.dca: no such file or directory
error opening dca file : open audio/another_one_echo.dca: no such file or directory
error opening dca file : open audio/jc_airhorn.dca: no such file or directory
error opening dca file : open audio/jc_echo.dca: no such file or directory
error opening dca file : open audio/jc_full.dca: no such file or directory
error opening dca file : open audio/jc_jc.dca: no such file or directory
error opening dca file : open audio/jc_nameis.dca: no such file or directory
error opening dca file : open audio/jc_spam.dca: no such file or directory
error opening dca file : open audio/ethan_areyou_classic.dca: no such file or directory
error opening dca file : open audio/ethan_areyou_condensed.dca: no such file or directory
error opening dca file : open audio/ethan_areyou_crazy.dca: no such file or directory
error opening dca file : open audio/ethan_areyou_ethan.dca: no such file or directory
error opening dca file : open audio/ethan_classic.dca: no such file or directory
error opening dca file : open audio/ethan_echo.dca: no such file or directory
error opening dca file : open audio/ethan_high.dca: no such file or directory
error opening dca file : open audio/ethan_slowandlow.dca: no such file or directory
error opening dca file : open audio/ethan_cuts.dca: no such file or directory
error opening dca file : open audio/ethan_beat.dca: no such file or directory
error opening dca file : open audio/ethan_sodiepop.dca: no such file or directory
error opening dca file : open audio/cow_herd.dca: no such file or directory
error opening dca file : open audio/cow_moo.dca: no such file or directory
error opening dca file : open audio/cow_x3.dca: no such file or directory
error opening dca file : open audio/birthday_horn.dca: no such file or directory
error opening dca file : open audio/birthday_horn3.dca: no such file or directory
error opening dca file : open audio/birthday_sadhorn.dca: no such file or directory
error opening dca file : open audio/birthday_weakhorn.dca: no such file or directory
error opening dca file : open audio/wow_thatscool.dca: no such file or directory
But all files in catalog
what title says
There should be a !snoop or !weed or !snoopdogg command that plays the smoke weed everyday audio, as well as a !pacer or !pacertest command that plays pacer test audio. Also, a !rickastley or !rickroll command that plays Rick Astley's Never Gonna Give You Up
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.