Coder Social home page Coder Social logo

lovelaced / glitzz Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 11.0 282 KB

two famous bots finally together as one glorious concurrent mess: glitzz.

License: GNU Affero General Public License v3.0

Go 99.12% Makefile 0.51% Dockerfile 0.24% Shell 0.13%
irc irc-bot shitposting 4chan

glitzz's Introduction

yo

flamesflamesflamesflamesflames

arch_linux_user_bar
irc_user_bar

chilis

glitzz's People

Contributors

azrotronik avatar beef6 avatar boreq avatar gjnoonan avatar gracchus163 avatar lovelaced avatar s3krit avatar shikicankillservants avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

glitzz's Issues

Add sed module

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

Ignore users

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.

Strip slashes from board names

19:37 < nick> .pic /an/
19:37 < glitz> http://i.4cdn.org//an//1534646787192.jpg

Most likely relates to .shitpost as well.

add .decide

should be able to parse lists of decisions parted by "," and "or"

Add hackernews module

I think glenda had it and it could be fun to have. I don't mind making it.

Commands:

  • hn
  • askhn
  • hnlast

.help command

This is a reminder that a potentially problematic .help command is needed.

The following features are needed:

  • get a list of commands with .help
  • display command help with .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:

  • get a list of commands with .help:
    • each module would implement an interface such as GetCommandList() []string returning available command names
    • when executing .help a piece of code living outside the modules could query all modules and assemble a list of commands to return
  • display command help with .help command_name
    • this could be implemented directly in the modules
    • core.Base could automatically respond when encountering this command
    • the help strings would be added to AddCommand in the module constructors

Missing html.UnescapeString in the `reddit` module

14:25 <$USER> .le programming
14:25 <glitz> &gt; 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.

Add a cybersex module

Like sex(6) but cyber and with nicks instead of socio-professional categories.

Command:

  • cybersex

Add github module

The module should report events happening in a repository in a specified set of channels.

Quotes returned an empty line

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.

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.