iopred / bruxism Goto Github PK
View Code? Open in Web Editor NEWA chat bot for YouTube, Discord and IRC.
License: MIT License
A chat bot for YouTube, Discord and IRC.
License: MIT License
Currently the behavior of Septapus I've seen is that it'll give links to avatars like https://cdn.discordapp.com/avatars/214009736532721664/e519adec555984ee5a9dccf5ec1a8574.png but these are mere 128px images. If you append the URL with ?size=1024 or ?size=2048 or what have you, it'll give the largest size up to that resolution. This should be the default behavior for a command what claims to return a big version of an avatar.
The latest version of this is broken and will not download when you try go git
Git Bash is saying this
$ go get github.com/iopred/bruxism/cmd/bruxism
C:\Go\bin\src\github.com\iopred\bruxism\playedplugin\playedplugin.go:114: cannot convert nil to type bool
C:\Go\bin\src\github.com\iopred\bruxism\playedplugin\playedplugin.go:114: invalid indirect of g.Guild.Unavailable (type bool)
This seems like an undesirable behavior for the comicgen plugin in particular, as it allows a user to quickly spam a channel:
@septapus comic 3
displays comic
edit original message, change to @septapus comic 2
displays another comic
(repeat ad nauseam)
This can be used to spam the crap out of a Discord server (which is why I'm reporting it).
Is there a way this plugin in particular might be fixed to ignore edits? I would contribute a fix but I know absolutely nothing of go.
Issue is still persisting or do i need to clear something? also nice quick response lol
In a private message, entering the "customcomic" command without the @Septapus prefix gives the error message "sorry, you didn't add any text" even if text was provided.
When trying to go get this package, I get the following errors:
$ go get -u -v github.com/iopred/bruxism/cmd/bruxism
go: finding github.com/iopred/bruxism latest
# github.com/iopred/bruxism
../../go/pkg/mod/github.com/iopred/[email protected]/discord.go:35:15: cannot convert nil to type discordgo.User
../../go/pkg/mod/github.com/iopred/[email protected]/discord.go:48:31: cannot convert nil to type discordgo.User
../../go/pkg/mod/github.com/iopred/[email protected]/discord.go:57:31: cannot convert nil to type discordgo.User
../../go/pkg/mod/github.com/iopred/[email protected]/discord.go:61:9: undefined: discordgo.EndpointUserAvatar
../../go/pkg/mod/github.com/iopred/[email protected]/discord.go:67:26: m.DiscordgoMessage.ContentWithMentionsReplaced undefined (type *discordgo.Message has no field or method ContentWithMentionsReplaced)
../../go/pkg/mod/github.com/iopred/[email protected]/discord.go:150:66: undefined: discordgo.MessageCreate
../../go/pkg/mod/github.com/iopred/[email protected]/discord.go:162:66: undefined: discordgo.MessageUpdate
../../go/pkg/mod/github.com/iopred/[email protected]/discord.go:177:28: message.Message undefined (type *discordgo.MessageDelete has no field or method Message)
../../go/pkg/mod/github.com/iopred/[email protected]/discord.go:194:19: gateway.GatewayBot undefined (type *discordgo.Session has no field or method GatewayBot)
../../go/pkg/mod/github.com/iopred/[email protected]/discord.go:206:10: session.ShardCount undefined (type *discordgo.Session has no field or method ShardCount)
../../go/pkg/mod/github.com/iopred/[email protected]/discord.go:206:10: too many errors
I think discordgo needs to get updated to the latest: v0.20.0
Hello,
So I installed septapus onto my discord server, I see it there (though offline if that matters). I've tried @septapus help, @septapus comic 5, @septapus stats etc etc and it isn't doing anything, is there something else I need to do to set it up?
Everytime i try to run the command go get github.com/iopred/bruxism/cmd/bruxism i get this error. I dont know what im doing wrong.
Im running ubuntu 16.04
Is there any way to avoid the requirement of the youtube oauth2 json file? Thanks in advance.
Sorry to bother you again but how do you use the commands for the youtube one i have been trying to do !help but the chat only apears in the console window and does nothing else. Also how can i setup alerts for when a livestream is online
Hey iopred,
unfortunately I am experiencing some issues with the installation of Go on Mac OS X.
I downloaded and installed the Go Package for Mac OS X here.
Then I tried to follow your instructions.
go get github.com/iopred/bruxism/cmd/bruxism
go install github.com/iopred/bruxism/cmd/bruxism
Is it right that the terminal window doesn't give me any feedback if the installation works or if it's done?
cd $GOPATH/bin
/bin
Apparently the next step bruxism -youtubeurl
won't work because the terminal didn't seem to recognize the command bruxism. I guess the installation with your cmd package haven't worked properly otherwise the command bruxism should work right?
Do you have any idea? Thanks in advance.
Jerkcity.com will thank you
I'm having a bad time trying to self-host this bot on my raspberry pi. After installing go and mercurial i manage to install the go package, but i dunno how create the Youtube Oauth API correctly.
I was able to generate a JSON file and copied it to go\bin folder, but when i run ./bruxism -youtubeurl
it always fails with oauth2/google: no credentials found
.
Is anywhere a tutorial showing how to create the oauth api? Thanks a lot!
I am getting this error when running @botName (Command)
Error sending discord message: HTTP 401 Unauthorized, {"code": 0, "message": "401: Unauthorized"}
When creating comics from right-to-left text, the bot reverses the text, making it unreadable.
It would be cool to add RTL support :)
Septapus is not sending any notification about a youtube livestream going online even after 20 minutes.
Can I get more detailed install instructions please? I'm a little confused after about 2h of trying to get the bot to run.
It seems that Septapus only supports relative times. I can only give it times relative to present time, like "I want a reminder +2 days from now" but I can't choose a specific date.
Being able to choose a specific datetime like YYYYMMDD-HHmm would be less verbose - thus more coherent - and less human-error prone than it currently is.
Example: Setting a reminder for Saturday
How many days is it from now until Saturday? Let me count... Ok, now how many hours and minutes from now until the moment I want the reminder?
Ok, the command is: @septapus reminder 2 days 16 hours 30 minutes.
VS
Let me glance at the calendar... Ok, that's the day I want, and I already understand absolute time intuitively.
command: @septapus reminder 20200909-1630
It was working most of the day, but now it won't respond to any commands for some reason.
When you type @septapus comic it says "Septapus is typing" but then nothing happens.
@septapus help doesn't do anything anymore either.
Thoughts?
I have been trying to deploy the app on heroku and keep getting issues about Heroku not being able to detect language for installation. I added Go buildpack, still no luck
Is there a reason that this bot uses imgur instead of directly uploading to Discord? It seems like it would be faster and less wasteful of imgur's bandwidth.
IMHO I think the command prefix should be configurable. "@BotUsername" is very long.
I followed the instruction shown in the README.md, then after I managed to register oAuth2, it displayed nothing.
After mistyping command it displayed list of commands so it is not like the thing is corrupted, but after successful(?) command it does not display anything. I am using Git Bash.
Plus, I am having trouble setting it up...
I'm probably doing it wrong.
I have successfully set up bruxism with youtube and got it to where it is relaying the text from chat into the console of the server like this:
2016/07/29 17:12:45 <10923810239803981weoiruweoriuwroiu423098> Testingthebot: !Help remind
2016/07/29 17:12:45 <120984312309182ukirroui34yweyw5y23457575> Testingthebot: !help remind
But nothing happens in the actual youtube chat window. I would expect the "Testingthebot" account to reply with something? I am posting the !Help remind message as the bot.
If you could help answer this, I would like to contribute to the wiki (maybe with some screenshots and simple example for oath) to make it easier for people get this set up.
Thanks!
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.