Giter VIP home page Giter VIP logo

Comments (6)

Routhinator avatar Routhinator commented on May 26, 2024

I've just installed this and I can confirm this behavior:

<Routh> Darkwolf tell me a joke
<DarkWolf> Routh: 3168.

from bmotion.

jamesoff avatar jamesoff commented on May 26, 2024

Horrible brokeness in complex_randomnumber.tcl by the looks of it:

  • matches too readily (i.e. on things not saying "...a number" at the end
  • needs to handle punctuation better

The 2nd one is probably addressed somewhere else in the code - I recall writing some stuff (maybe for complex_questions.tcl) to make it 'standardise' the punctuation around the bot's nick at the start of a line so that the plugin only had to match on one form (e.g. botnick:)

from bmotion.

Routhinator avatar Routhinator commented on May 26, 2024

Hmm it would be good if the bot was able to recognize several forms, based on how people type naturally. My bot is on a private IRC network I run for my writing site so people use various punctuations..

botnick: <command>
botnick, <command>
botnick... <command>

Your theory about not having the bot respond when it shouldn't is good, but I think this should only apply to alphanumeric modifiers and not punctuation modifiers.. for example:

No response

botnicksuffix
prefixbotnick
123botnick

Response

 "botnick"
 botnick:
 ....botnick

from bmotion.

jamesoff avatar jamesoff commented on May 26, 2024

That's how pretty much every other plugin responds, it's just this one which is broken :)

For 123botnick there's a setting in settings.tcl which determines if it wraps it's nick with regexp begin-word and end-word markers (on by default)

from bmotion.

Routhinator avatar Routhinator commented on May 26, 2024

Hmm, noticed you closed this and made a commit. I pull the latest, restarted/rehashed. Now the bot will not respond to any of the "tell me a..." commands at all.. responds in other ways still.

from bmotion.

jamesoff avatar jamesoff commented on May 26, 2024

That's because the only one it's supposed to respond to is "tell me a number", the others don't exist :)

from bmotion.

Related Issues (20)

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.