Comments (8)
Just tested the swear word blocking part of the bot and it seems to be working fine for me. If possible, can you give me some more information such as:
- Where the error occurred,
- What was done before it occurred
- What you have in the
config.js
file for theswearWords
setting - What version of Node.js you are running
from discordbot.
@donkeymonkey1 As there has not been any reply in 10 days from my last reply, and there does not seem to be any problem found with the code while testing, this issue will be closed. If a reply is received, the issue will be reopened.
from discordbot.
After more testing, without knowing exactly what the issue is from your side, I think I may have found the problem. My testing showed that having a value other than an array for the swearWords
configuration option will cause the error that you received. Data type checking for configuration options may be added into a future version of the bot but it is currently a low priority.
I did not add this type of check into the bot because at the time, I thought it was not necessary. I overlooked an important part of error checking here. As said earlier in this reply, it will be added into a future version but is not high priority.
For this reason, the issue will be reopened and will be listed as a P2
priority (where P0
is the highest and P3
is the lowest).
The testing can be found online at https://l.ndt3.ml/2EYdqFj. The testing was done on an online service called repl.it.
Thank you for the report.
from discordbot.
It's problem with dashboard
...
from discordbot.
When someone change anything in dashboard
Uncaught Exception: TypeError: guildSettings.swearWords.someword is not a function
and bot crash
from discordbot.
Yeah, it is a problem with the dashboard trying to convert a string to an array but failing to do so. The swearWords
configuration option then gets sent to the configuration options for that guild as a string and as .some
expects to be used on an array, it gives an error and crashes.
The code that was added to try to overcome this problem a few months ago was quickly written and not properly tested. I only tested it in a way that I knew it would work and didn't test it with values that could fail to work.
Changing this to a P1
priority bug.
from discordbot.
@donkeymonkey1 Thank you once again for reporting this bug. The issue with updating settings from the dashboard (and the set
command) of the bot should now be fixed.
from discordbot.
👍
from discordbot.
Related Issues (20)
- Bot Database HOT 4
- Music Commands HOT 2
- Remove or Update URL Shortener Command HOT 2
- Stats page HOT 3
- How i host that in Glitch.com HOT 2
- Bot Dashboard HOT 7
- Bot leaves voise channel just after playing music HOT 3
- Login does not work HOT 2
- Uncaught Exception: TypeError: Cannot read property 'has' of undefined HOT 6
- Help command
- Getting an error for the `reason` command HOT 4
- [email protected] install: `prebuild-install || node-gyp rebuild` HOT 4
- [email protected] install: `prebuild-install || node-gyp rebuild` HOT 2
- Login redirects to broken URL HOT 3
- Hide commands in the commands page HOT 3
- Invalid OAuth2 redirect_uri HOT 4
- Critical Vulnerability HOT 1
- Can't add more pages to the dashboard. HOT 1
- The End of NdT3's Discord Bot
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 discordbot.