Git Product home page Git Product logo

ccbot's People

Contributors

jh220 avatar nsde avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

ccbot's Issues

Interaction-ID: /clearall

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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 application did not respond

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.

Doesnt work

first i used /clear some other word 100 it said deleted 0 messages, then i kicked it and invited it again. Now i type /clear there are no such commands pls help
1

[Feature Request] Clear whole channel

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.

Interaction-ID:

Describe the bug
The bot gives the message "The application did not respond" when I use the clear all command

To Reproduce
Steps to reproduce the behavior:

  1. Go to any chat channel
  2. Type /clearall

Expected behavior
Its supposed to clear all messages in a chat

Screenshots
Screenshot 2023-10-27 at 11 36 27 AM

Additional context
None

Can't use commands

Describe the bug
For some reason when I use /clearall on the ClearChat Bot, it just says "The application did not respond" and that happens to another bot too. But the other bots I had worked perfectly fine.

Expected behavior
Of course I expected it to clear all chats but it didn't

Screenshots
Screenshot 2023-12-17 at 20 22 35

Error-ID: 8859429677

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.

Interaction-ID: O aplicativo não respondeu

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.

Error-ID: 6131265473

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.

[Feature Request] /admin (Bot Administration)

With this command the bot owner can get information of the bot and manage servers.
Open for suggestions!

Usage Examples

/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

Example for /admin get

https://github.com/JH220/discord-clearchatbot/blob/0920f65e968ccebd2bc1034c1975313b488f83dc/commands/admin.js
https://github.com/JH220/discord-clearchatbot/tree/0920f65e968ccebd2bc1034c1975313b488f83dc/commands/admin

[Feature Request] Restoring messages (/unclear)

Requested by ØG Kazama#8658 on the support Discord server

Concept

/unclear - A command for recovering deleted messages.

Implementation

  • Whenever /clear is being ran, the deleted messages are being saved for x minutes
  • Webhooks could be used to send 'fake' the recovered messages that seem similar to actual ones

offline

Hello! I found this bot and I was excited to use it in order to delete messages in my server before inviting people yet the bot isn't online but offline for a reason and I cant clearly use it.

Screenshot_20220826-042830_Discord
Screenshot_20220826-042807_Discord

[Feature Request] /autoclear (Premium Feature)

With 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.

Usage Examples

/autoclear setup duration:3 mode:all
/autoclear modify duration:3 mode:bot
/autoclear remove
/autoclear contribute

Possible implementation

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.

https://github.com/JH220/discord-clearchatbot/blob/0920f65e968ccebd2bc1034c1975313b488f83dc/autoclear/autoclear.js#L5-L16

/clear does not clear messages

The /clear command no longer deletes messages even when a number of messages is specified.
No errors are displayed in the console as well as in the database.

Error

Interaction-ID: offline

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.

[Feature Request] Auto-Clear

Clears the channel history after a certain amount of time

/autoclear <duration*> <mode*>

* = Optional

Duration: (Default: instant)

  • The time to wait until the chat gets cleared again

Mode (Default: all)

  • bots: only messages written by bots get cleared
  • webhooks: only messages written by webhooks get cleared
  • users: only messages written by users get cleared
  • all: all messages get cleared

Interaction-ID:

When I try to execute any command it says in a red color The application did not respond

Steps to reproduce the behavior:

  1. Try to execute a command

Expected behavior
The command to work

Screenshots
Screenshot 2024-01-17 103657

Interaction-ID: The application did not respond

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.

Error-ID: 7550046665

Describe the bug
I tried to run /clear in #commands in the official Developement Discord.

To Reproduce
Run /clear in #commands in the official Developement Discord.

Expected behavior
No error.

Actual behavior
Error.

Screenshots
image

Additional context
No

[Major Exploit] Bot keeps crashing and goes offline

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'
}

Interaction-ID:

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.

Interaction-ID:

Screenshot 2024-02-20 at 1 12 24 PM **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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.

Interaction-ID:

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.

Interaction-ID:

proof2
proof
so it says the bot is offline and I've waited for at least 30 minutes and it still doesn't work. I wont be active for 14/15 hours as I will be asleep. I will more likely respond then.

Error-ID: 2819715399

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.

Error-ID: 4769395333

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.

Error-ID 2163875739

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.

Application did not respond

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:

  1. Go to any channel
  2. Click on 'use slash command'
  3. Scroll down to '/clear all' or '/clear > target'
    (wait a moment)
  4. See error

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.

[Feature Request] Spam Blocker

A configurable way to filter messages, for example by:

  • allowed or blacklisted domains
  • filtering spam (ping) messages
  • filtering certain keywords for certain roles

Error-ID: 8009642399

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.

It wont work or setup

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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.
Screenshot 2022-08-13 5 44 46 PM

[Feature Request] /filter » Remove all messages containing a specific keyword

Requires MCI (Message Content Intent)


/filter

Remove all messages containing a (or one of) certain keyword(s)

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!

Arguments

  • STR: keywords, seperated by a space OR regex (if it's easy to program, it probably is tbh)
  • BOOL/STR: mode
    • and: the message has to contain ALL of the said keywords
    • or: the message has to contain SOME of the said keywords
  • USER: if none, select all users
  • CHANNEL: if none, use all
/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.

Error-ID: 8466245942

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:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

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 application did not respond

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

Expected behavior
it should clear all messages in chat
image

[Feature Request] Voting Coin System

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.