Comments (7)
You can use keywords
from phantombot.
This is currently not possible. Adding this feature would require quite a lot of work.
from phantombot.
You can use keywords
It won't work and function like commands, I can't use "uptime?" for example as a keyword.
from phantombot.
This is currently not possible. Adding this feature would require quite a lot of work.
I see, sorry to hear that.
from phantombot.
You can use uptime?
as a keyword and make it trigger a command.
!keyword add uptime? command:uptime
from phantombot.
This is currently not possible. Adding this feature would require quite a lot of work.
I see, sorry to hear that.
I didn't think of keywords. 🧠
!keyword add uptime? command:uptime
This would cause the keyword to mach anywhere. So if someone in chat would say Does anyone know the uptime?
, the bot would react as well. If you want the bot to only react on uptime?
and nothing else, you have to use a regular expression like so
!keyword add --regex ^uptime\?$ command:uptime
Explanation: ^
makes sure, that this is the beginning of the message, $
makes sure that the end of the message has been reached. Regexes have some characters that have a special meaning. You don't have to bother what that meaning is, you just need to know that you have to put a \
in front of them to tell the regex "this has no special meaning, just take it for what it is". Those symbols include: .*+?^${}()|[]\
. So for example, if you have a (
in your keyowrd, replace it with \(
and you are good to go.
I think this issue can be closed?
from phantombot.
Thank you, That worked fine!
from phantombot.
Related Issues (20)
- java.lang.NullPointerException: Exception parsing getChattersAsync
- java.lang.NullPointerException: Cannot invoke "com.gmt2001.twitch.cache.Viewer.id()" because the return value of "com.gmt2001.twitch.cache.ViewerCache.broadcaster()" is null
- java.lang.NullPointerException: Cannot invoke "com.gmt2001.twitch.cache.Viewer.id()" because the return value of "com.gmt2001.twitch.cache.ViewerCache.getByLogin(String)" is null
- org.jooq.exception.DataAccessException: Error with Event Handler [ircChannelUsersUpdate] Script [./core/permissions.js] Stacktrace [permissions.js:968 > init.js:496 > init.js:886] Exception [JavaException: org.jooq.exception.DataAccessException: SQL [begi
- java.lang.NullPointerException: Cannot invoke "com.gmt2001.twitch.cache.Viewer.id()" because the return value of "com.gmt2001.twitch.cache.ViewerCache.broadcaster()" is null
- java.lang.NullPointerException: Cannot invoke "com.gmt2001.twitch.cache.Viewer.id()" because the return value of "com.gmt2001.twitch.cache.ViewerCache.getByLogin(String)" is null
- java.lang.NullPointerException: Exception parsing getChattersAsync
- java.lang.NullPointerException: Cannot invoke "tv.phantombot.PhantomBot.getAuthFlow()" because the return value of "tv.phantombot.PhantomBot.instance()" is null
- java.lang.NullPointerException: Cannot invoke "discord4j.core.GatewayDiscordClient.logout()" because "tv.phantombot.discord.DiscordAPI.gateway" is null
- java.lang.NullPointerException: Cannot invoke "java.util.concurrent.Future.cancel(boolean)" because "this.future" is null
- User Greetings module toggle switcher in Panel work incorrect
- Add the ability to use commands in User Greetings messages HOT 1
- upgrade from 3.9.0.6 to 3.10.0.10 database fails upgrade so no logins. HOT 4
- Discord alerts mention incompatibility
- Error Message if a new panel user creates oder edits timers
- Docker version hangs on update while starting HOT 3
- Multiple channels HOT 2
- Giveaway not clearing past participants
- Update DurationString Reference
- Random command too kinky. PG13 filter doesn't seem to work
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 phantombot.