lovelaced / glitzz Goto Github PK
View Code? Open in Web Editor NEWtwo famous bots finally together as one glorious concurrent mess: glitzz.
License: GNU Affero General Public License v3.0
two famous bots finally together as one glorious concurrent mess: glitzz.
License: GNU Affero General Public License v3.0
no clue where this is in probably the linkreader? I really dont want to look at any of the source
I'll get started on the logo
< glenda> https://github.com/lovelaced/glitzz new events: 2 commits to refs/heads/master | pull requests: https://github.com/lovelaced/glitzz/pull/56 was closed
< glitz> Internal error occured, check the logs!
Replacing text in the last of your own messages that contains it:
s/old/new
Replacing text in the last of someone else's messages that contains it:
nick: s/old/new
It should be possible to ignore users by defining appropriate patterns in the config:
nick!user@host
nick!*@*
*!*@host
And so on. This might be useful for ignoring other bots.
Commands:
Commands:
19:37 < nick> .pic /an/
19:37 < glitz> http://i.4cdn.org//an//1534646787192.jpg
Most likely relates to .shitpost
as well.
should be able to parse lists of decisions parted by "," and "or"
Issue: When ".bots" is run, some bots respond with a link for their source according to the IBIP (https://git.teknik.io/Teknikode/IBIP). The bot will post these links which is not optimal behavior and creates multiple unnecessary messages.
Commands:
I think glenda had it and it could be fun to have. I don't mind making it.
Commands:
Commands:
This is a reminder that a potentially problematic .help
command is needed.
The following features are needed:
.help
.help command_name
This is problematic due to the way the modules are implemented. The modules have no knowledge about each other. Due to this the help command would have to be a solution existing at least partially outside of the modules.
Potential solution:
.help
:
GetCommandList() []string
returning available command names.help
a piece of code living outside the modules could query all modules and assemble a list of commands to return.help command_name
core.Base
could automatically respond when encountering this commandAddCommand
in the module constructorsLel
By default http.Client
has no timeout, a timeout of ~20 seconds sounds like a better idea.
http.Client{Timeout: 20 * time.Second}
https://medium.com/@nate510/don-t-use-go-s-default-http-client-4804cb19f779
Commands:
14:25 <$USER> .le programming
14:25 <glitz> > To make matters worse, we use a different logging framework than the default in spring (and we didn’t include the package for that class). So none of those messages went to our log files.
html.UnescapeString
should fix that.
Normally I'd make a PR but I don't have a reddit API key to test my changes.
The responses should be rate limited. This can be easily done by modifying the sender. A config param can specify how often the messages can be sent.
Like sex(6)
but cyber and with nicks instead of socio-professional categories.
Command:
get a random OP post/topic(?) from a given sub-stackexchange
The module should report events happening in a repository in a specified set of channels.
The commit f4bf8b9
broke it by removing the needed callback, not sure if it happens only on my machines.
DBUG[08-09|22:25:47] findModuleResponse executing source=cmd/glitzz/commands/run command="{Text:.dennis Nick:boreq}"
DBUG[08-09|22:25:47] executing command source=modules/quotes name=dennis
DBUG[08-09|22:25:47] queueing message source=core/sender queued_messages=0
DBUG[08-09|22:25:47] sending message source=core/sender target=#botnet_test text=
The file doesn't contain empty lines. It is possible that the trailing newline in the file causes the last element of the list to be empty.
Solution: when loading quotes the module should ignore empty lines.
The following commands should work in the same way:
.echo glitzz | cute
.echo glitzz | .cute
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.