jh220de / ccbot Goto Github PK
View Code? Open in Web Editor NEWA nice and shiny discord message purger.
Home Page: https://jh220.de/projects/ccbot
License: GNU Affero General Public License v3.0
A nice and shiny discord message purger.
Home Page: https://jh220.de/projects/ccbot
License: GNU Affero General Public License v3.0
This error occurs during startup.
Describe the bug
A clear and concise description of what the bug is.
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug
A clear and concise description of what the bug is.
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
There are restrictions for purging messages, but there's a workaround:
By copying the channel and deleting the old one, the message content is being cleared while all permissions and other channel settings stay the same.
Describe the bug
A clear and concise description of what the bug is.
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug
A clear and concise description of what the bug is.
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug
A clear and concise description of what the bug is.
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
With this command the bot owner can get information of the bot and manage servers.
Open for suggestions!
/admin get id:123456789 (Bot checks which id is specified and gets the info of it, interactive buttons)
/admin stats (General info of the bot's stats like server count)
/admin log action:all/mod limit:10 (Gets the current actions of the bot)
/admin list sort:asc/desc limit:10 (Gets a server list) unimportant
https://github.com/JH220/discord-clearchatbot/blob/0920f65e968ccebd2bc1034c1975313b488f83dc/commands/admin.js
https://github.com/JH220/discord-clearchatbot/tree/0920f65e968ccebd2bc1034c1975313b488f83dc/commands/admin
Requested by
ØG Kazama#8658
on the support Discord server
/unclear
- A command for recovering deleted messages.
/clear
is being ran, the deleted messages are being saved for x minutesWith the Autoclear command you should be able to set up a channel in which messages are automatically deleted after a certain time.
The following exampels are the individual subcommands of the Autoclear command. The first three commands can only be executed by administrators (users with Manage Messages or Manage Server rights). You can set up a channel with a certain duration, which can be set between 0 and 120 seconds, and a mode in which you can switch between all messages, messages from bots, messages from users, messages with links or messages without links.
/autoclear setup duration:3 mode:all
/autoclear modify duration:3 mode:bot
/autoclear remove
/autoclear contribute
The following example is from the old version of the ClearChat bot.
An AutoClear command was already implemented there, but was not finished writing it and thus was never functional.
Serves as an overview of the possible modes and the command description. Implementation is done via subcommands and not via options like in the example.
In addition, the implementation of the delete process is not implemented in the example. Here the users who use the contribute subcommand contribute their Vote-Points, the points someone gets when voting for the bot (#27), to the channel. With these points a limited amount of messages can be deleted.
Describe the bug
A clear and concise description of what the bug is.
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Clears the channel history after a certain amount of time
/autoclear <duration*> <mode*>
* = Optional
Duration: (Default: instant)
Mode (Default: all)
bots
: only messages written by bots get clearedwebhooks
: only messages written by webhooks get clearedusers
: only messages written by users get clearedall
: all messages get clearedThe bot randomly crashes when a command is executed.
https://github.com/JH220/discord-clearchatbot/blob/438294e65be14436a956e40e05c3504b9aa0a059/src/bot.js#L73
Describe the bug
A clear and concise description of what the bug is.
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug
The bot always stops working and goes offline after some specific error.
To Reproduce
The actual origin causing this issues is yet to be found.
Expected behavior
No crash.
Screenshots
Not needed.
Additional context
Error [ERR_IPC_CHANNEL_CLOSED]: Channel closed
at new NodeError (node:internal/errors:371:5)
at process.target.send (node:internal/child_process:721:16)
at /home/discord/clearchat/node_modules/discord.js/src/sharding/ShardClientUtil.js:88:17
at new Promise (<anonymous>)
at ShardClientUtil.send (/home/discord/clearchat/node_modules/discord.js/src/sharding/ShardClientUtil.js:86:12)
at /home/discord/clearchat/node_modules/discord.js/src/sharding/ShardClientUtil.js:122:12
at new Promise (<anonymous>)
at ShardClientUtil.fetchClientValues (/home/discord/clearchat/node_modules/discord.js/src/sharding/ShardClientUtil.js:111:12)
at Timeout.setActivity [as _onTimeout] (/home/discord/clearchat/src/bot.js:39:22)
at listOnTimeout (node:internal/timers:557:17) {
code: 'ERR_IPC_CHANNEL_CLOSED'
}
A possibility in the server settings via the /settings command to set an option that the bot no longer sends a response to the channel.
Requested by BONEHEΛD#3189 in the Development Network
Describe the bug
not working comand
A clear and concise description of what the bug is.
i cant use any comands to bot
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
To Reproduce
Steps to reproduce the behavior:
when I type /clearall it just gives me the error within the screenshot.
Expected behavior
A clear and concise description of what you expected to happen.
I expect it to just clear the whole chat as described. Its a private channel but the bot has all the necessary permissions.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug
A clear and concise description of what the bug is.
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug
A clear and concise description of what the bug is.
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug
A clear and concise description of what the bug is.
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug
A clear and concise description of what the bug is.
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug
Attempted to run /clearall and /clear target and got this as a response on both.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
it should clear all messages in chat
Screenshots
Screenshot here from discord
Additional context
I was able to use '/clear amount', however the other two produced an error.
Today they both worked. I do not think this is necessarily a constant issue, but it is not in the FAQ.
Bot randomly crashes when started.
A configurable way to filter messages, for example by:
Since the AutoMod feature of Discord was introduced, the bot gets errors when deleting the log messages of the bot, because they are not deletable.
Happens not only via the context menu, but also in the /clear command.
Describe the bug
A clear and concise description of what the bug is.
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
"The app is not responding"
Describe the bug
A clear and concise description of what the bug is.
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Docs: https://discord.js.org/#/docs/discord.js/stable/class/MessageContextMenuInteraction (MessageContextMenuInteraction)
Please add this feature @JH220 as it is a way to protect privacy - say I'm in a server where I used to post a lot of messages about a topic I now dislike or which could be traced to my personal information. With this command, it would be possible to delete all messages from a user who doesn't want to share such information.
This can be extremely useful for clearing out messages that contain spam, too!
/filter keywords:"hate slurs" mode:"or"
/filter keywords:"google facebook apple" mode:"or" user:@ONLIX channel:#general
/filter keywords:"bastighg good" mode:"and" user:@ONLIX channel:#opinions
The last one was a joke.
Describe the bug
A clear and concise description of what the bug is.
If you have an error ID, please include it here or in the title.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug
Attempted to run /clearall and /clear target and got this as a response on both.
To Reproduce
Steps to reproduce the behavior:
Go to any channel
Click on 'use slash command'
Scroll down to '/clear all' or '/clear > target'
(wait a moment)
See error
ClearChat Bot
BOT
— Today at 00:25
The application did not respond
Only you can see this • Dismiss message
The bot crashed randomly while it was started.
Attached is the error message and the database entry of the server.
The command with Waiting for Response has no arguments in the table.
Tracking issue for:
The idea is to implement a point system / coin system, which converts votes into points, which can then be used for autoclear and possibly other commands.
A 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.