Coder Social home page Coder Social logo

mantaro / mantarobot Goto Github PK

View Code? Open in Web Editor NEW
387.0 387.0 179.0 39.98 MB

Multipurpose Discord bot made in Java using JDA.

Home Page: https://mantaro.site/

License: GNU General Public License v3.0

Java 99.92% Lua 0.08%
bot discord discord-bot jda jda-bot mantaro

mantarobot's People

Contributors

arraying avatar chebureki avatar dependabot-preview[bot] avatar dependabot[bot] avatar devoxin avatar edisonlee55 avatar haxiz avatar kewdz avatar kodehawa avatar lerisen avatar loreleibr avatar milkyy-wayy avatar mirteiwaz avatar mrlar avatar natanbc avatar netux avatar nhalrath avatar pauleks avatar rainestormee avatar schnapster avatar shadorc avatar sirywell avatar smehta11 avatar stayberri avatar thebaba98 avatar thomasdbock avatar tylergibbs2 avatar vrontis avatar yuvira avatar zeylahellyer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mantarobot's Issues

Market buying noworking

Whenever I wish to buy something, I was never allowed. Even when putting the emoji.
Here's a screencap. I do have the credits to buy it.

screenshot_10

Lock a Role from using the bot

Hey! I would like to ask if someone could tell me how I can lock or disable a role in my server to use the bot and use the bot for music or something like that !

Trivia Lockout

I've been doing trivia games with Discord pals on weekends, but yesterday, the bot seemed to have locked up the trivia command, and is showing that a game is currently in progress, despite it being 8 days (as of last night) since the last game was started, and completed successfully. Any way to fix manually, or is shard info required?

items in inventory supposed to do something?

Idk where to ask this question so I hope someone could direct me to proper place to ask or give me an answer.

What do we do with the items in our inventory for the currency commands? Do any of them do anything?
Besides the crate box / key & brom's pickaxe. What do the other items do?

I don't see a ~>use [item name] ..

Music speed

For some reason, the bot is playing music at, like, 3x speed.
It's messing with our gameplay.

Second input for trivia always marked incorrect

Mantaro usually says you're correct if you input the answer in the first time, but if you guess the answer a second time, Mantaro always says it's wrong.

example:
image

This happens every single time you answer a second time.

game command is glitched

so, basically, this is almost the same problem that's stated in issues #19 and #23. the game command is glitched and it won't let me answer or end the current game, nor will it timeout. i've tried using ~>opts lobby reset a couple of times, but it resets and glitches again shortly after. any ideas?

p.s. here's a screenshot if you need a visual. thank you!

Loot time cooldown increasing

Not so much for me, but the cooldown on the loot command is continuously going up for someone on my server and there's no clear reason why. At this point in time, the cooldown has reached almost eight hours. This has gone up from the timer stating they need to wait six hours, since I was first made aware of the issue.
screenshot_14

Every so often, whenever the person checks to see if the time is going down, it scales up further. I've already advised them to try waiting until the seven-hour timer is cleared, however I still have no idea what's even wrong with this. I've also already tried removing Mantaro and re-adding the bot, however that did not resolve the issue.

Dosent play music.

Sometimes Mantaro dosent even play music.
Or sometimes when it does it plays very blur, like, I cant even hear it. At that moment, I checked the ping. The ping was 2994 ms >.<

Error??

I bought a crate key, but Manataro keeps saying I don't have a crate key when I try opening a crate. Surprisingly other members can't see the key as well in my inventory, unless they're just messing with me

Hacktoberfest - Mantaro

We've opened pull requests to Mantaro for hacktoberfest.

What do we need:

  • Documentation in core. Needs to be fairly complete.

  • Place a song on x position of the queue.

  • Use of percentage in gamble (for example ~>gamble 30%) Done

  • Implementation of the ~>warn command.

  • Re-organization and refactoring of the README file (probably also needs a new example)

What you could do too

  • Clean up code
  • Fix spelling mistakes.
  • Pull request/Issue templates

Also, pull Requests that are obviously split up to farm will not be accepted and marked as invalid (For example changing docs of 2 classes in 2 Pull Requests is not wanted)

Happy farming \ o /

Birthday announcements are not working

Hi there - I believe I've set this up correctly, but birthday announcements are not working. Here are the commands I issued and Mantaro's responses:

KarnaughAtlas - Yesterday at 9:52 AM
~>opts birthday enable announcements BirthdayMonarch
MantaroBOT - Yesterday at 9:52 AM
πŸ“£ Birthday logging enabled on this server with parameters -> Channel: #announcements (361357225379495946) and role: BirthdayMonarch (393082903820632082)

->birthday 21/12/2017
MantaroBOT - Yesterday at 10:25 AM
βœ… Added birthdate.
KarnaughAtlas - Yesterday at 10:26 AM
->birthday month
MantaroBOT - Yesterday at 10:26 AM
βœ–οΈ There are no birthdays for this month here :(

I ran those commands yesterday and was expecting to see an announcement about my birthday, and to have the birthday role assigned to me, but neither happened.

Let me know if you need any further information from me!

Game command glitched?

There is a glitch where the bot thinks it is in a game, but not only did the "end" not work, but it's been almost a day and still doesn't timeout. Is there a way to reset it so we can play our games again? I tried kicking her and re-adding her, that didn't work either...

NoClassDefFoundError lombok

I am trying to set up the bot (self-host) but its throwing an error

Exception in thread "main" java.lang.NoClassDefFoundError: lombok/Lombok
at net.kodehawa.mantarobot.utils.data.GsonDataManager.(GsonDataManager.java:36)
at net.kodehawa.mantarobot.data.MantaroData.config(MantaroData.java:41)
at net.kodehawa.mantarobot.services.Carbonitex.(Carbonitex.java:27)
at net.kodehawa.mantarobot.MantaroBot.(MantaroBot.java:90)
at net.kodehawa.mantarobot.MantaroBot.main(MantaroBot.java:204)
Caused by: java.lang.ClassNotFoundException: lombok.Lombok
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

MantaroBot Database

Which database does mantaro use?
Which character set does the mantaro database use utf8mb4?

I set up the database and this error continues to return in the logs
image

BUG

for one of the badges it gives you a badge for having 5000 of any item. i have 5000 necklaces but have not gotten the badges there's either a problem or something wrong that I'm doing. please look into this

.-.

Is there a way to make a custom command that i created only available to one group?

Bot responds to channels without permissions

I have removed all permissions for the bots group the in all but two channels(one of which was originally #general) yet it still responds to commands in those channels for which it does not have read permission, or any other permission. The bot does not have administrator permissions in it's own group.

Database Rewrite

Database uses too much reading because we filter stuff with regex.

This issue will track:

  • Rewrite of how we handle objects (POJOs)
  • Use snowflakes as new IDs
  • Create a MantaroDataPorter to fix the keys

I think i found a bug or coding error.

The price of buying an item (for some items) is different than the price that is showing in the market .
->market
MantaroBOT - Yesterday at 11:43 PM

πŸ›’ Mantaro Market
Items
01.- 🎧 Headphones
02.- πŸ”¨ Ban Hammer
03.- πŸ‘’ Kick Boot
04.- πŸ’Ύ Floppy Disk
05.- πŸ“ My Maths
06.- πŸ“ Ping Racket
07.- 🎲 Loaded Die
08.- 🎡 Forgotten Music
09.- ✏️ Pencil
10.- πŸ’° Moneybag
11.- ⛏️ Brom's Pickaxe
12.- :milk: Milk
13.- 🍾 Alcohol
14.- πŸ“° Lewd Magazine
15.- πŸ’ Marriage Ring
16.- πŸ’Œ Love Letter
17.- πŸ”‘ Crate Key
18.- πŸ‘• Clothes
19.- πŸ’Ž Diamond
20.- πŸ‘— Wedding Dress
21.- πŸ“Ώ Necklace
22.- πŸ€΅β€β™‚οΈ Tuxedo
23.- πŸ‘Ÿ Shoes
24.- 🌹 Rose
25.- 🍫 Chocolate
26.- πŸͺ Cookie
27.- 🎟️ Slot ticket
28.- 🏠 House
Value (Buy/Sell)
πŸ’² N/A, $3
πŸ’² N/A, $12
πŸ’² N/A, $9
πŸ’² N/A, $9
πŸ’² N/A, $9
πŸ’² N/A, $13
πŸ’² N/A, $57
πŸ’² N/A, $11
πŸ’² N/A, $11
πŸ’² $79, $64
πŸ’² $59, $48
πŸ’² $50, $41
πŸ’² $45, $36
πŸ’² $44, $36
πŸ’² $59, $48
πŸ’² N/A, $48
πŸ’² $67, $54
πŸ’² $14, $11
πŸ’² $377, $308
πŸ’² $75, $62
πŸ’² $18, $15
πŸ’² $26, $21
πŸ’² $8, $7
πŸ’² $62, $51
πŸ’² $45, $36
πŸ’² $53, $44
πŸ’² $71, $58
πŸ’² $5500, $4500
Requested by RayRay
RayRay - Yesterday at 11:43 PM
->profile
MantaroBOT - Yesterday at 11:43 PM

πŸ’ RayRay's Profile
Gamer πŸ•ΉοΈ
No single thing is perfect by itself. That’s why we’re born to attract other things to make up for what we lack. I think we start walking in the right direction only after we start getting our counterparts beside us.
πŸ’΅ Credits
$ 1236
⚑ Level
11 (Experience: 11204)
:military_medal: Reputation
20
πŸ‘ Inventory
πŸ’° x 1, ⛏️ x 2, πŸ’ x 2, πŸ’Œ x 1, πŸ€΅β€β™‚οΈ x 1, :milk: x 1, πŸ“° x 6, πŸ“Ώ x 1, πŸ”‘ x 4, πŸ‘— x 2, πŸ’Ύ x 1113, πŸ‘• x 1601, 🏠 x 1, 🌹 x 2, 🎟️ x 8, 🎧 x 1, 🎲 x 1, 🍫 x 1, πŸͺ x 3, 🍾 x 1, ✏️ x 26, πŸ‘Ÿ x 5000
πŸŽ‰ Birthday
18-02
❀️ Married with
Kitsune Black rock shooter#7217
Badges
πŸ•ΉοΈ πŸ”§

User's timezone: No timezone set. | Requested by RayRay
RayRay - Yesterday at 11:43 PM
->market buy 1 diamond
MantaroBOT - Yesterday at 11:43 PM
πŸ‘Œ Bought 1 πŸ’Ž successfully. You now have 893 credits.
RayRay - Yesterday at 11:43 PM
->market sell 1 diamond
MantaroBOT - Yesterday at 11:43 PM
βœ… You sold 1 Diamond and gained 309 credits!

i had 1236. 1236 - 893 = 343. so i brought the diamond for 343 instead of what it said on the list and i sold for 309 which is also different to the list.
image
image

Guessing game is stuck.

Basically this - user started a pokemon guessing game, and at one point Mantaro stopped taking his answers. Now no one can start a new game from the bot - I haven't tried kicking as I don't want to have to rework permissions on it. Any idea how to force terminate a game? I didn't see it in the command list.

found a possible bug

to keep it simple. when using the ->love command and the percentage generated is 45% it reads "Perfect match!" which should be the line for 100% if i'm not mistaken. would be a weird thing to jump from 'try again later' lines to perfect and then to just "Good enough." only to start gradually increasing after that

Playing streams failed

Playing mp3 streams failed because it's continuous playing, but the bot allow only <20min

My badge is not registering :(

For whatever reason, when achieving the Shopper badge it will not register on my profile and will not show up when I use ~>badges. I bought 5000 shoes and have had them for 2 days but it will not appear, I have 3 badges currently, Lucky, Claimer, and Gamer. Maybe there is a max on how many badges I can have but if there is I was not aware of it. When getting my other badges they appeared in the hour so I'm not sure whats going on with it.

PS. I have never used this website before so I'm not sure if this is even the right place for this πŸ˜†

Edit: Someone told me to do ~>inventory and then do ~>badges and it worked, for whatever reason it will not appear anymore but thanks dude

Mantaro is in VC channel but music isn't playing.

I'd like to request for a restart of our shard. Other than the title, I'm not really sure what's wrong.
~>np shows the current track playing properly, and all other commands are functioning just fine.

~>info


> --------- Technical Information --------- 
> 
> Commands: 94
> Bot Version: 4.4.2_DEV-30062017
> JDA Version: 3.1.1_DEV
> Lavaplayer Version: 1.2.42
> API Responses: 48422156
> CPU Usage: 34.318766066838045%
> CPU Cores: 8
> Shard Info: Shard [12 / 34]
> API Status: ONLINE
> API Ping: 0ms
> 

>  --------- Mantaro Information --------- 
> 
> Guilds: 33610
> Users: 727266
> Shards: 34 (Current: 13)
> Threads: 2302
> Executed Commands: 161415
> Logs: 4920
> Memory: 9654.0MB / 16299.0MB
> Music Connections: 408
> Queue Size: 9823
> 
>  --------- RethinkDB Information --------- 
> 
> RethinkDB Version: rethinkdb 2.3.5~0xenial (GCC 5.3.1)
> Time Connected: 113:37:13
> Cache Size: 11291.61MB
> Hostname: ubuntu

~>shardinfo


> Shard [0 / 34]  | STATUS: CONNECTED | U: 31615 | G: 1010 | L: 213 ms  | MC: 8 
> Shard [1 / 34]  | STATUS: CONNECTED | U: 22729 | G: 1027 | L: 233 ms  | MC: 7 
> Shard [2 / 34]  | STATUS: CONNECTED | U: 25389 | G: 989  | L: 30 ms   | MC: 12
> Shard [3 / 34]  | STATUS: CONNECTED | U: 28273 | G: 1006 | L: 45 ms   | MC: 14
> Shard [4 / 34]  | STATUS: CONNECTED | U: 30461 | G: 978  | L: 92 ms   | MC: 11
> Shard [5 / 34]  | STATUS: CONNECTED | U: 22087 | G: 1029 | L: 666 ms  | MC: 11
> Shard [6 / 34]  | STATUS: CONNECTED | U: 30292 | G: 986  | L: 66 ms   | MC: 12
> Shard [7 / 34]  | STATUS: CONNECTED | U: 25632 | G: 989  | L: 345 ms  | MC: 16
> Shard [8 / 34]  | STATUS: CONNECTED | U: 30740 | G: 971  | L: 62 ms   | MC: 11
> Shard [9 / 34]  | STATUS: CONNECTED | U: 31018 | G: 994  | L: 60 ms   | MC: 17
> Shard [10 / 34] | STATUS: CONNECTED | U: 21648 | G: 987  | L: 31 ms   | MC: 10
> Shard [11 / 34] | STATUS: CONNECTED | U: 28479 | G: 977  | L: 315 ms  | MC: 15
> Shard [12 / 34] | STATUS: CONNECTED | U: 20928 | G: 961  | L: 67 ms   | MC: 19 <- CURRENT
> Shard [13 / 34] | STATUS: CONNECTED | U: 41943 | G: 1006 | L: 45 ms   | MC: 10
> Shard [14 / 34] | STATUS: CONNECTED | U: 22453 | G: 997  | L: 149 ms  | MC: 16
> Shard [15 / 34] | STATUS: CONNECTED | U: 25273 | G: 979  | L: 21 ms   | MC: 14
> Shard [16 / 34] | STATUS: CONNECTED | U: 29004 | G: 1016 | L: 114 ms  | MC: 6 
> Shard [17 / 34] | STATUS: CONNECTED | U: 22860 | G: 964  | L: 148 ms  | MC: 6 
> Shard [18 / 34] | STATUS: CONNECTED | U: 29700 | G: 1001 | L: 5 ms    | MC: 12
> Shard [19 / 34] | STATUS: CONNECTED | U: 26026 | G: 959  | L: 351 ms  | MC: 7 
> Shard [20 / 34] | STATUS: CONNECTED | U: 36173 | G: 964  | L: 118 ms  | MC: 16
> Shard [21 / 34] | STATUS: CONNECTED | U: 24503 | G: 982  | L: 10 ms   | MC: 14
> Shard [22 / 34] | STATUS: CONNECTED | U: 21928 | G: 1011 | L: 100 ms  | MC: 15
> Shard [23 / 34] | STATUS: CONNECTED | U: 25350 | G: 997  | L: 32 ms   | MC: 18
> Shard [24 / 34] | STATUS: CONNECTED | U: 38310 | G: 1032 | L: 24 ms   | MC: 9 
> Shard [25 / 34] | STATUS: CONNECTED | U: 20119 | G: 955  | L: 187 ms  | MC: 8 
> Shard [26 / 34] | STATUS: CONNECTED | U: 25785 | G: 929  | L: 23 ms   | MC: 9 
> Shard [27 / 34] | STATUS: CONNECTED | U: 30679 | G: 1001 | L: 174 ms  | MC: 13
> Shard [28 / 34] | STATUS: CONNECTED | U: 27901 | G: 973  | L: 25 ms   | MC: 12
> Shard [29 / 34] | STATUS: CONNECTED | U: 21566 | G: 952  | L: 100 ms  | MC: 10
> Shard [30 / 34] | STATUS: CONNECTED | U: 23829 | G: 1066 | L: 9 ms    | MC: 11
> Shard [31 / 34] | STATUS: CONNECTED | U: 33943 | G: 972  | L: 1 ms    | MC: 15
> Shard [32 / 34] | STATUS: CONNECTED | U: 36734 | G: 993  | L: 111 ms  | MC: 13
> Shard [33 / 34] | STATUS: CONNECTED | U: 28449 | G: 957  | L: 200 ms  | MC: 11

Test

Testing auto issues

did i do something wrong or is the use slot coin not working

MantaroBOT - Today at 12:49 AM

Slots Command
Rolls the slot machine. Requires a default of 50 coins to roll.
Permission required
User
Considerations
You can gain a maximum of put credits * 1.76 coins from it.
You can use the -useticket argument to use a slot ticket (slightly bigger chance)
Usage
~>slots - Default one, 50 coins.
~>slots - Puts x credits on the slot machine. Max of 50000.
~>slots -usecoin - Rolls the slot machine with one slot coin.

Requested by Kirin
Kirin - Today at 12:49 AM
~>slots -usecoin
MantaroBOT - Today at 12:49 AM
βœ–οΈ That's not a number!

Prefix Change?

Is there any way we can have a command that allows us to change the prefix for the commands?

no shopper badge

image
it says here that to get the shopper badge you need 5000 of any given item at one time.
image
so why don't i have the badge???

Test

Testing auto issues again

The Married Command is Bugged

If you're not "married" and you ask someone who is married, the person receiving the question will get the option to say yes or no. However, if you are married and you ask someone else, regardless if they are married or not, Mantaro will say that the user is already married.

WHY

i was in the middle of the que and i wanted to add another song, i typed in ~>play die young it didnt work. I thought it was ok because sometimes u need to type it in twice i did it didnt work then i decided to try ->play die young because sometimes u need to use one or the other IT STILL DIDNT WORK

Command doesnt work

in tutorial it shows "~>opts autoroles add " i do that, and bot says "i didnt find a role with that name" even doe im trying to create role.

How does the marry command work?

Got this bot a week or two ago and me and my gf were messing around then found the marry command
But how do you actually accept the proposal?
It says please answer with Yes or No but it doesn't seem to work?

Mention modifiers

Hey, you could add mention modifiers
Example:
->custom new check @if{$(event.message.raw);equals;$(event.mention);User exists;User does not exist.}
In this example, it would be required to mention a real user If you want the command returns "User exists".
Adding this modifiers,we could create commands where It would be necessary to mention someone, not just write a random word or name.
You could make something like $(event.author),with status,game,avatar,id,discriminator,name and username.

Badges problem

Hey, there is not Γ  long time ago, i've seen this thing, ans i don't think is it's really normal, m'y friend have sais me that on her computer it's thΓ© samedi situation, she has 6 badges, but only 5 are on her profile. I hope you'll can help. There are thΓ© screenshots on my phone
screenshot_2017-12-14-20-47-34
screenshot_2017-12-14-20-47-24

Multiple replies

How do I make multiple replies in custom commands work with :img? Because it seems to only work with the first reply.
Also how do I make the bot mention someone I mentioned in a custom command? For example: ~>highfive @user

$(event.author.mention) high fived @mentioneduser

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.