kaktushose / levelbot Goto Github PK
View Code? Open in Web Editor NEWdiscord bot with leveling system, items and events
Home Page: https://discord.gg/nplay
License: GNU General Public License v3.0
discord bot with leveling system, items and events
Home Page: https://discord.gg/nplay
License: GNU General Public License v3.0
Es wird eine tägliche Belohnung für User eingeführt.
Text:
@user
Herzlichen Glückwunsch, (User!)
Du hast Deine tägliche Belohnung in Höhe von (Typ und Anzahl der Belohnung + Icon) erfolgreich abgeholt.
Schau gerne morgen wieder vorbei.
The channel id of the level-info channel changed, must be updated
Steps to reproduce:
java.lang.IllegalArgumentException: Description cannot be longer than 2048 characters.
at net.dv8tion.jda.internal.utils.Checks.check(Checks.java:62)
at net.dv8tion.jda.api.EmbedBuilder.appendDescription(EmbedBuilder.java:327)
at net.dv8tion.jda.api.EmbedBuilder.setDescription(EmbedBuilder.java:303)
at com.github.kaktushose.jda.commands.entities.EmbedDTO.toEmbedBuilder(EmbedDTO.java:193)
at de.kaktushose.levelbot.bot.Levelbot.lambda$updateStatistics$17(Levelbot.java:386)
at net.dv8tion.jda.internal.requests.restaction.operator.FlatMapRestAction.supply(FlatMapRestAction.java:44)
at net.dv8tion.jda.internal.requests.restaction.operator.FlatMapRestAction.lambda$queue$0(FlatMapRestAction.java:54)
at net.dv8tion.jda.api.requests.Request.lambda$onSuccess$0(Request.java:95)
at java.base/java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1426)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Due to this error, embed text is too long for some reason
In #willkommen soll es zusätzlich ein Embed geben, welches folgende Statistiken anzeigt:
{
"color":178188,
"type":"rich",
"description":"Hier haben wir f\u00fcr Dich einige spannende Statistiken rund um den Discord-Server, den YouTube- und den Twitch-Kanal zusammengestellt.\n\n__**Stats zum Server:**__\n\n**Mitglieder auf dem Server:**\nxxxxx\n\n**Mitglieder online:**\nxxxxx\n\n**Mitglieder in Spielen:**\n:tractor: LS 19: xxxxx\n:truck: ETS 2: xxxxx\n:fire: Notruf 112: xxxxx\n:bus: OMSI 2: xxxxx\n:mountain_cableway: Winter Resort Simulator: xxxxx\n:gun: GTA V: xxxxx\n\n**Nitro-Booster:**\nDerzeit insgesamt xxxxxxx <@&596780997727617045>, die uns mit xxxxxx Boosts unterst\u00fctzen.\n\nxxxxxx (Usernamen)\nxxxxxx\nxxxxxx\n\n**PREMIUM:**\nDerzeit ingesamt xxxxxx <@&386302591883018242>- Mitglieder.\n\nxxxxxx (Usernamen)\nxxxxxx\nxxxxxx\n\n__**Stats zu den Kan\u00e4len:**__\n\n**Abonnenten auf YouTube:** \nxxxxxx\n\n**Kanalmitglieder auf YouTube:**\nxxxxxx\n\n**Follower auf Twitch**:\nxxxxxx",
"title":"Ein paar Zahlen"
}
java.util.NoSuchElementException: No value present
at java.base/java.util.Optional.orElseThrow(Optional.java:377)
at de.kaktushose.levelbot.shop.data.ShopService.getTransaction(ShopService.java:106)
at de.kaktushose.levelbot.shop.data.ShopService.addItem(ShopService.java:72)
at de.kaktushose.levelbot.shop.data.ShopService.addItem(ShopService.java:64)
at de.kaktushose.levelbot.database.services.BoosterService.lambda$updateBoosterStatus$1(BoosterService.java:57)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at de.kaktushose.levelbot.database.services.BoosterService.lambda$updateBoosterStatus$3(BoosterService.java:44)
at net.dv8tion.jda.internal.utils.concurrent.task.GatewayTask.lambda$onSuccess$3(GatewayTask.java:79)
at java.base/java.util.concurrent.CompletableFuture.uniAcceptNow(CompletableFuture.java:757)
at java.base/java.util.concurrent.CompletableFuture.uniAcceptStage(CompletableFuture.java:735)
at java.base/java.util.concurrent.CompletableFuture.thenAccept(CompletableFuture.java:2182)
at net.dv8tion.jda.internal.utils.concurrent.task.GatewayTask.onSuccess(GatewayTask.java:76)
at de.kaktushose.levelbot.database.services.BoosterService.updateBoosterStatus(BoosterService.java:42)
at de.kaktushose.levelbot.bot.Levelbot.lambda$start$0(Levelbot.java:166)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
Das alte Shopsystem ist aufwendig und fehleranfällig. Daher soll es durch ein neues, Reaction basiertes System ersetzt werden.
@user
Überschrift: Bestätige Deinen Kauf! 🎁
Text: Bist du sicher, dass Du (Itemname+Item-Icon) für (Preis) Münzen 💰 erwerben möchtest? Klicke auf den ✅ ,um den Kauf zu bestätigen.
Reaktion: ✅ (Bestätigung) und 🚫 (Ablehnung)
@user
Überschrift: Vielen Dank, (User)!
Das Item wurde Deinem Konto erfolgreich gutgeschrieben.
Dein neuer Kontostand beträgt (Betrag) Münzen 💰
Das Aktivieren und Deaktivieren von Events erzeugt regelmäßig einen hohen administrativen Aufwand. Daher soll dies in Zukunft auch über Command möglich sein. Neue Events und deren Unterkategorien müssen weiterhin manuell eingepflegt werden, die bereits bekannten Events werden allerdings implementiert.
event balance <start|stop> <id>
event balance list
event contest start <textchannel> <emoji>
event contest stop
event collect <start|stop> <id>
event collect list
Die Embeds in #willkommen sollen in Zukunft über den Levelbot gesendet werden.
welcomeEmbeds.json
Dateireloadembeds
add the date when the statistics got updated to the footer of the embed
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.