supinic / supibot Goto Github PK
View Code? Open in Web Editor NEWMultiplatform, utility & novelty chat bot.
License: GNU Affero General Public License v3.0
Multiplatform, utility & novelty chat bot.
License: GNU Affero General Public License v3.0
Context:
Within a discord server that has a member with username 13#XXXX
If I do $remind discordUser in 30s Hello
and their discord id is: 13XXXXXXXXXXXXXXXX
, when the command resolves, it will ping the 13#XXXX
user, not the user I targeted with $remind
(the discordUser
)
Is it possible to add a new setting that allows certain types of users (i.e. mods or VIPs of a Twitch channel) to be able to use commands that are banned or set to be used online-only for instance?
I was able to set up my own Supibot instance, but whispers didn't work (I was able to solve it, more below).
The first problem I had was that Self_ID
was not set in the DB, which caused an error that from_user_id
was not set for whispers.
Then I had the problem of a missing scope user:manage:whispers
because the linked token generator did only have the scopes chat:read+chat:edit+channel:moderate+whispers:read+whispers:edit+channel_editor
which did not contain user:manage:whispers
(which I than added through Inspect Element
).
After that, I made the mistake that I generated the token for the wrong account (my main instead of the bot)
After that, whispers worked.
So I see 2 ways to solve this:
Since I fixed it myself, I don't really care about it being documented, but I think it might help others that might have the same issue because I needed quite some time to find out what the problem was because I didn't know about the chat_data.Log
table (I used the interactive guide) and only found it by looking through the code (of supi-core iirc).
When I tried to get $origin
to work (which I still didn't get to work because I think I first need to run a few INSERT
s I think) I found that the SQL-Command does not work because of the foreign key constraints. I fixed that by changing Raffle_Winner
, Author
and User_Alias
from INT(11)
to INT(10) UNSIGNED
on my instance because chat_data.User_Alias.ID
does have that type.
To debug that I ran that command without the constraints and added those later with ALTER TABLE data.Origin ADD CONSTRAINT [...]
.
Hello Sir. My name is George Anton, I currently work as a security guuard in Culver City, California. I'm a regular guy, paycheck to paycjheck. I paypal-ed to Xaetai, his real name Donald, a cytube contributor $100 to install cytube on my AWS account with few modifications like in the attached pics below. After a basic install, the dude got corona, or something happened I don't know, he dissapeared with the money and everything. Left me with the unfinished website https://3reo.com :) Sir, will you be able to help me add bots to the channels they are listed on the main page and to add the screen on the main page so a regular user can just change the channels like regular tv? https://3reo.com interface to look like below?
main page: https://i.imgur.com/q8cQy7g.jpg
admin page: https://i.imgur.com/hbQFtn7.jpg
feel free to call me anytime.
thanks a million,
George Anton
Los Angeles
310-927-9552
I currently do not have access to my running Supibot instance, so I try to write this from my head. $remind
has worked until I used the after:
parameter. To use that parameter I had to change the column type from ENUM('Pingme', 'Reminder')
to ENUM('Pingme', 'Reminder', 'Deferred')
hello,
the docker-compose file which is in the documentation seems to not work correctly. mysql and redis starting up, but the bot cannot connect to redis. It seems the config for redis isn't written correctly to the DB.
The link second from the bottom in README.md is broken:
"Command docs + how to make your own" targeting https://github.com/Supinic/supibot/blob/master/docs/command.md gives 404
Hello, I have tried to setup using docker and the manual way and it didn't work.
With docker I got connection refused from redis: https://prnt.sc/rS015BtFlITy and with manual way: ```Initialization of twitch controller module failed CustomError [sb.Error]: Ambiguous platform name - use host as second parameter
I have just created the table listed under https://github.com/Supinic/supibot/tree/master/commands/time and got the following as an error in chat_data.Error
then I ran the $time command:
SqlError: (conn=4064, no: 1064, SQLState: 42000) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'Offset, Name
FROM `data`.`Timezone`
WHERE (Abbreviation = 'australia')
LIMIT 1' at line 1
sql: SELECT Abbreviation, Offset, Name
FROM `data`.`Timezone`
WHERE (Abbreviation = 'australia')
LIMIT 1 - parameters:[]
at module.exports.createError (/root/supibot/node_modules/mariadb/lib/misc/errors.js:61:10)
at PacketNodeEncoded.readError (/root/supibot/node_modules/mariadb/lib/io/packet.js:572:19)
at Query.readResponsePacket (/root/supibot/node_modules/mariadb/lib/cmd/parser.js:55:28)
at PacketInputStream.receivePacketBasic (/root/supibot/node_modules/mariadb/lib/io/packet-input-stream.js:82:9)
at PacketInputStream.onData (/root/supibot/node_modules/mariadb/lib/io/packet-input-stream.js:132:20)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:343:12)
at readableAddChunk (node:internal/streams/readable:316:9)
at Readable.push (node:internal/streams/readable:253:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
After little playing around with the SQL-Statement in MariaDB I found out that it seems to be the problem, that the Offset
column name is not quoted.
When I did SELECT Abbreviation, `Offset`, `Name` FROM `data`.`Timezone` WHERE (`Abbreviation` = 'australia') LIMIT 1;
it succeeded with an empty set (as expected), but when I did SELECT Abbreviation, Offset, `Name` FROM `data`.`Timezone` WHERE (`Abbreviation` = 'australia') LIMIT 1;
it failed with the above-mentioned error.
Not sure if that issue is for supibot tho, because I think supi-core handles the whole SQL stuff...
with '$fish show (user) junk' to my oppinion you should be able to view this users junk
as of now only this users fish is shown
It would be quite nice to have "raw data" as a result from commands. Right now, the only way to extract any data from a command being used is to parse it out of the reply
string with regular expressions and such.
If each command would return a wrapper of data all related to the execution, creating custom command chains and pipes would be a lot easier.
This discussion follows from since-archived SPM
repository. For more info or context, check here: Supinic/supibot-package-manager#90
Discussed with @2547techno and @NotNotQuinn
Initial command $reload fails:
TypeError: sb.Runtime.incrementScriptHotloaded is not a function
It would be very useful for certain scenarios to implement chat connectors as separate services, rather than being part of supibot. For example, supibot could be restarted without connecting all of the channels.
It could also potentially simplify the inevitable forced migration to eventsub for twitch chat connections.
Current infrastructure choice is to use Redis streams.
More information about planned connector design here: https://github.com/Supinic/supibot/tree/platform-connectors-manifest/connector-docs
Example connector for IRC: https://github.com/boring-nick/supibot-connector-poc
More or less title. If a general option is made for this, I am specifically looking for something to change cooldown on $fill.
I suspect there might already be something like this, but I looked through docs and code (I'm not great at JS though) and can't find a command to change it.
Continuing from Supinic/supibot-package-manager#105:
AD
b4f8bd6cc0eef67dfb61fda89ca152ebeeba7085MC
SM
VA
Already added in Supinic/supibot-package-manager#36 - more specifically: Supinic/supibot-package-manager@63e7ea8A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.