Comments (5)
Nevermind: The values are set somehow...
print("message from user:"..client.me:getName())
print("message from actor:"..event.actor:getName())
message from user:FGCOM-RADIO-59279
message from actor:251
from lua-mumble.
I think the users
and channels
variables are only set when selecting multiple people to send a message to. Not sure if these values are actually passed to the bot though, to be honest.
from lua-mumble.
Thank you!
I wonder if there is any procedure to detect if the message is a channelmessage or usermessage?
from lua-mumble.
After some testing, event.channels is set when it's not a direct message. You could use that to detect.
from lua-mumble.
Works like a charm!
You really should consider to document that somewhere, maybe master...hbeni:patch-1
from lua-mumble.
Related Issues (20)
- client.me object absent
- Compilation error from duplicate packet_handler definitions HOT 6
- Private message event HOT 1
- Question: How to capture incoming audio stream? HOT 20
- Implement pluginData sending function HOT 6
- timer.c realloc(): invalid next size HOT 41
- hook onUserChannel() not called? HOT 2
- Add sample speed informatin to OnUserSpeak() hook HOT 10
- uninitialized error variable in client_play() HOT 3
- client_isPlaying channel taken from incorrect argument
- Played samples not audible after some time (client:transmit) HOT 13
- client:play() arguments? HOT 3
- sendPluginData with list broken? `bad argument #3 to 'sendPluginData' (mumble.user expected, got table)` HOT 25
- How to compile? HOT 19
- Stuttery Audio playback HOT 9
- Timer counter HOT 1
- Crash in timer.lua example script HOT 7
- Typo in README.md (mumble.user:isMuted()) and non-working mumble.user:isSelfMute() HOT 2
- Add plugin packets HOT 3
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 lua-mumble.