I do stuff in a few programming langs & system administration.
I love messing with linux & selfhosting most stuff I use.
Contact me over irc.hahota.net
, on #irc
.
Ducky is a discord bot written with love using the JavaCord library.
Home Page: https://ducky.hahota.net
License: GNU Affero General Public License v3.0
When testing the search function I noticed that when searching for something like
Error: Connection timed out after 20 seconds of inactivity
Error: Could not connect to serv
I get a java.net.MalformedURLException: Illegal character in URL
, as Jsoup tries to search for the content String, which may contain invalid characters. Further investigation is needed.
Fix rare npe which is thrown when the query answer is null.
As many answers get sent to the query as much objects are in the "Document". This could cause a discord ratelimit lol
We have to get the prefix as an object, so we can use it inside the command classes. Using this method the prefix will by dynamic.
A248 suggested
public class Prefix {
private final String prefixValue;
public Prefix(String prefixValue) {
this.prefixValue = prefixValue;
}
public String prefixValue() {
return prefixValue;
}
}
Provide a public Dockerfile for redundancy and constant avability. However in order to do this, we'll need either a
Hardcoded values won't work here if we want to scale.
Yes, you can vote. I don't know how I should implement these without any adverts. but we'll see. At the moment this will be just a tracking list.
1 - https://bots.discordlabs.org/bot/805150455378345994
2 - https://top.gg/bot/805150455378345994
3 - https://discord.bots.gg/bots/805150455378345994
Find out why ducky uses soo much memory. Some profiler is needed.
Limit the usage of the search command.
https://github.com/vladimir-bukhtoyarov/bucket4j
Or message.getTimeStamp().
When I tried to build this with gradlew script under Ubuntu 18.04 under Windows subsystem of Linux
I have got this message
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain
After a Google search I tried to install a gradle, and run gradle warpper, and I got thiss message
* Where:
Build file '/mnt/c/Users/tcmba/Desktop/Ducky/build.gradle' line: 11
* What went wrong:
A problem occurred evaluating root project 'Ducky'.
> Could not find method application() for arguments [build_avvyldzcp5iz84edo7523mfty$_run_closure1@12b5b73b] on root project 'Ducky' of type org.gradle.api.Project.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 0s
Java version: OpenJDK 11 JDK
Gradle version: 4.4.1
Setting a listener in each command's class is dumb. Instead, why not set one global listener & use it as a handler for all the .contains("");
methods.
There are multiple ones out there, and we need performance.
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.