Comments (6)
I've just installed this and I can confirm this behavior:
<Routh> Darkwolf tell me a joke
<DarkWolf> Routh: 3168.
from bmotion.
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.
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.
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.
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.
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)
- jeffk plugin is broken
- Let bot talk in its sleep HOT 4
- Use more fields in userinfo.tcl HOT 10
- No redis server can cause bMotion to delay during startup
- bMotion can cause eggdrop to run out of memory with low ulimit HOT 2
- Waking up and then running the overslept code? HOT 1
- Tcl error [bMotion_event_mode]: missing close-bracket
- Errors. I upgraded it to latest version. HOT 3
- "set answer-ctcp 0" in eggdrop.conf breaks ACTION triggers
- Minor bug with silence/silent variable. HOT 2
- Mood: allow to specify negative values HOT 1
- Tcl error [bMotion_event_action]: can't read "mood(horny)": no such variable HOT 4
- possibility to set the bmotion path manually in eggdrop.conf or similar HOT 2
- [enhancement] perhaps, add support for bot to be pre-op transgender HOT 4
- Error message in bots HOT 2
- "bMotion_abstract_add_filter" error with redis HOT 2
- Error when enabling Censor plugin HOT 1
- Bot quits when using emojis HOT 3
- can't read "reason": no such variable HOT 2
- Remote host closed the connection HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bmotion.