Giter Site home page Giter Site logo

airhornbot's People

Contributors

dclstn avatar dependabot[bot] avatar elihschiff avatar justinbeckwith avatar night avatar smol-skyz avatar typpo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

airhornbot's Issues

Unable to download bot.

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

Bot crashed on channel

time="2017-02-18T18:20:19+03:00" level=info msg="VOICE: " play=&{237264976690151424 237264976690151425 247635258567032833 0xc4200163c0 false}

Airhorn not working

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!

Issue when trying to play sound

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.

401 Unauthorized when Playing Sound

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.

bot ignoring commands after failed payload delivery

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.

Issue installing Web Server

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.

Cooldown feature or ban individual users from using the bot

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.

Not an issue, but dont know how else to comment

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

!eb sounds may be causing the bot to break

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...)

Tutorial on how to convert sounds to DCA0

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!

Choppy/lagging airhorns

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.

Command list command?

Maybe I'm missing something but is there a way to get the bot to output all of the available commands?

Bot not working anymore?

Bot doesnt recognize the command anymore..
Its online, but its like a dead person. Does nothing.

Did something change?

Airhorn Solutions bot is Offline

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.

Permission System

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.

Noot Noot

Hi,
could you please make a bot like the airhorn bot but with Pingus "Noot Noot"!
Tim

Dead bot, was able to make it work only once.

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...

running gcc failed: fork/exec /usr/bin/gcc: cannot allocate memory

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.

discord.ShardID undefined

Issue:

github.com/hammerandchisel/airhornbot/cmd/bot

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

"spamming" commands breaks bot.

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"

Lag or not to lag

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)

error opening dca file : open audio/wow_thatscool.dca: no such file or directory

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

'make static' fails to compile

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.

Server configuration and readme

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.