Comments (6)
Hello 👋, Thank you very much for raising an issue 🙌. The maintainers will get back to you soon for discussion over the issue!
If you would like to continue contributing to open source and would like to do it with an awesome inclusive community, you should join our Discord Server- we help and encourage each other to contribute to open source little and often 🤓 . Any questions let us know.
from classroom-monitor-bot.
I'd say you should first be sure how you want to get the black/whitelist with words.
- These Wordlists need to stored in a database together with the channelID
- Then you need the
onMessage
Event and check for the channel which the message got sent in - If there is a entry for the channelID in the database you have to get your wordlist
- validate your message against the wordlist from the database
The keything here I believe is how you want to create your wordlist for allowed/disallowed words and how you want to get them into your db
from classroom-monitor-bot.
I guess we are not adding DB as of now. (We can always try but). The idea is like we will add a allow list and if the user message has any of the words from the allowlist we will do nothing but if there isn't any word matching we will delete that message. Also, this bot is dedicated to only 2 servers. Should we still go for DB?
from classroom-monitor-bot.
It depends. When not using a database you cant add channels dynamically. You would probably have to hardcode your channelIds which I definitely wouldnt do, or store it in-memory. Storing it in-memory would mean that after a reboot all data is lost. I htink thats a thing you have to decide.
from classroom-monitor-bot.
Umm. You are correct. 🤔 I will get back to you on your dm's or here when I figure out what approach could be followed.
from classroom-monitor-bot.
Hey @Cahllagerfeld your idea of DB was great. We will use DB for that. Let me know when you are free in my DM's then we can pair on it. As it's bit difficult for me alone
from classroom-monitor-bot.
Related Issues (20)
- [Bug]: Bot message for profane words is unclear HOT 1
- [Bug]: Add Chinese, Japanese and American to the allowed list HOT 5
- [Bug]: Bot not capturing edtech startups HOT 4
- [FEATURE] Add the Gitpod ready-to-code system HOT 3
- [BUG] Add `remain` to the whitelist HOT 2
- [BUG] Classroom Bot giving warning for a common word HOT 1
- [Chore] Remove the error reply HOT 3
- [FEATURE] Use regex instead of hard-coding the statements HOT 3
- [BUG] Add `hook` to the list HOT 1
- [FEATURE] Add custom log and error handlers HOT 2
- [BUG] Adapt to discord v13 HOT 2
- [BUG] use `const` instead of `let` HOT 1
- [FEATURE] Remove warning message from the CM Bot when a user updates their message. HOT 6
- [BUG] Add "UK" to whitelist HOT 5
- [BUG] Trigger for Whitespace HOT 1
- [BUG] use of undefined variable HOT 1
- [FEATURE] Don't prompt for restricted links if a DM is sent to the concerned sender. HOT 2
- [BUG] Commands/slash commands not working HOT 10
- [BUG] Outdated links/content HOT 6
- [BUG] Website not deploying 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 classroom-monitor-bot.