Giter Site home page Giter Site logo

koxsosen / ducky Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 246 KB

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

Java 96.44% Dockerfile 3.56%
discord discordbot search-engine ducky hacktoberfest

ducky's Introduction

Hi there ๐Ÿ‘‹

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's People

Contributors

koxsosen avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

notgeri

ducky's Issues

Build with maven under java 16

I believe the maven can't works under Java 16, however I don't know why
image

But, if I build your code under Java 11, I got this error message.

image

The content String somethimes throws an exception.

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 npe

Fix rare npe which is thrown when the query answer is null.

Ai branch -> Create AiHelper

  • Only create one instance for JNarvHal.
  • Feed the data once the startup event is fired. (all serburs are loaded)
  • Fix sentence generation via separating phrases.

Make the prefix an object

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

Dockerize Ducky

Provide a public Dockerfile for redundancy and constant avability. However in order to do this, we'll need either a

  • Config
  • Exposed jvm value
  • or a "hidden" file lilke .env

Hardcoded values won't work here if we want to scale.

Memory opt

Find out why ducky uses soo much memory. Some profiler is needed.

Build error

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

Implement listener and java8 lambdas

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.

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.