Comments (5)
this rocks
from eddiebot.
Sounds good. Having access to the username
would be good to include in the bot's response. Could pass it as a 3rd parameter?
Good spot on the bots
role, I have now added that permission to that role π
from eddiebot.
I believe this can be done by deleting the message that started the command, like
if (message.deletable) {
message.delete();
}
But to only do this on a particular command, we would need the command handler to receive the message
parameter.
from eddiebot.
Oh awesome π . Thanks for the example π€
from eddiebot.
I've tested the delete
method, and in order for the bot to execute it it needs the "Manage Messages" permission:
I think our server has the bots
role so maybe we could add the permission there or create a new role with it.
As for the message
parameter on the command handlers, what do you guys think @garretcharp @eddiejaoude ? If we have it, this code that deletes the message would be only on the commands that want that. Also, we could have access to more information when creating the embed
like adding message.author.username
from eddiebot.
Related Issues (20)
- [FEATURE] Configuration Commands HOT 2
- [request to join the open source community] HOT 2
- [OTHER] migrate custom word checker
- [OTHER] save warnings to database
- [FEAT] Save stats to the DB
- Remove The Word "Just" from moderation HOT 5
- [DOCS] fix typo in README.md
- [FEATURE] Allow the word invalid HOT 2
- [FEATURE] Unblock tinker HOT 1
- [FEATURE] Add Kubescape file
- [FEATURE] <adding master to the list of trigger words> HOT 3
- [FEATURE] <allow the word Black> HOT 3
- {FEATURE REQUEST} Allow the names βThe Lion Kingβ& βWomen Who Codeβ HOT 3
- [FEATURE] Improve notifications by context checking
- [OTHER] screenshot in readme
- Please invite me to the Github Community Organization HOT 1
- [FEATURE] <to handle messaging multiple channels in a server>
- [FEATURE] Warn users who upload images without alt text HOT 4
- "Disabled" sensitivity prompt is incorrect HOT 5
- [BUG] Can't find duplicate letter words HOT 8
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 eddiebot.