Giter Club home page Giter Club logo

mai's Introduction

Announcements

πŸ•› 17th August, 2021

πŸ“’ Rewrite Coming Soon

Rewrite for Mai that will be written on the freshly released v13 of djs is just around the corner. Be wary that the newer release [v5-Public] may have less features than the current version of the bot [v4]. This might include discontinued support for sharding and music, and the removal of message based command entirely to fully utilize the slash command feature specifically made for bots.


πŸ•› 23rd June, 2021

πŸ“’ Migration from Public to Private

This repository will be updated with the code for the rewritten bot following the official version 13 release of discord.js, once both the library and the updated bot have been deemed stable. Our hosted version of the bot, Mai does not run the code in this repository. The official bot's source code has been made private and moved to a Github Organization. We will still maintain this repository over time with patches and slowly release new features once they have been tested throughly to ensure they are of the utmost quality. We will only be providing limited, non-obligatory support to self-hosting users who have not made changes to the code we deem to be significant.


Mai

A Discord Bot Based Around Anime, and Mai

App Version Node Requirements build LICENSE LICENSE Online



Check the docs on https://mai-san.ml/

Hosting

Deploy Using Docker

We have docker images available so Just Do This:

docker run -v /mai:/data -e DISCORD_TOKEN=bot_token bearts/mai:v4.0

Optional environment variables

  • MONGO_URI: The Mongo URI, if you want to use the database-reliant features
  • chatbot_id chatbot_key: Chatbot id and key, if you want to use the chatbot feature

Deploying (Without Using Docker)

Create Env file:

Refer to .env_example file for other usable environment variables

DISCORD_TOKEN=

Run the following command on your CLI

npm install

npm start

Why should you invite Mai?

Mai is a simple yet powerful Discord Bot that aims to give discord users an enhanced "Discord Experience". Mai provides a variety of fun and informative commands that you can use with your friends.

Mai can:

  • Spice up chat environment with the use of roleplay/action commands such as pat, hug, slap, and more!
  • Search through the internet for information resources through various functions such as anime information lookup (series, characters, and even seiyuus!), games (via steam), or even time on some cities.
  • Ease the work of moderators by managing the server through various single commands.
  • Provide Airing Information automagically, implement user experience system, as well as economy system.
  • Acquire totally random fun facts from various sources Mai has access to.

Invite

You may invite Mai through https://invite.mai-san.ml.

Support

If you have questions regarding the bot and it's use, please do join our support server at https://support.mai-san.ml/.

Contribute

Contribution includes, but is not limited to making a Pull Request.

Pull Requests regarding totally new commands without foretelling the developer via creating issue will automatically be rejected.

If you love this work and wish to contribute in another manner, please do join our support server (which isn't much) and ping/mention Sakurajimai#6742 there.

License

Mai is Licensed under MIT.

Disclaimer

Mai's developer is not, in any way, affiliated with Mai Sakurajima's creator, nor the production team that brought the anime together, and is not, in any way, benefit financially from the sales the series produces.

Mai Sakurajima and "Seishun Buta Yarō wa Bunny Girl Senpai no yume wo Minai" are all owned by Aniplex, Cloverworks, Keeji Mizoguchi and Hajime Kamoshida.

Please support the official releases.

mai's People

Contributors

0zul avatar bearts avatar buttermiilk avatar conqr2 avatar cybrpop avatar dependabot[bot] avatar kakarot-dev avatar maisans-maid 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

mai's Issues

Question

So how can I work on per-guild prefix?

It'll be convenient if you have a premade code, but you can show me what should I add/remove/fix to do that if you don't.
It's fine if you can't help because of something, I'm working on it.

Thanks.

Item still being used despite it already sold

Describe the bug
When selling something you already equipped, the item still shows up on the profile

To Reproduce
Steps to reproduce the behavior:

  1. Buy an item
  2. Equip the item
  3. Use profile command
  4. Sell the item
  5. Use profile command again
  6. Watch the bot still display the item

Expected behavior
The item should revert to default.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Chatbot key

Initializing the client. Please wait...
SUCCESS! Loaded 165 commands!
SUCCESS! Loaded 7 event files!
Error [TOKEN_INVALID]: An invalid token was provided.
at WebSocketManager.connect (/rbd/pnpm-volume/39348e56-f62c-4e3f-aeda-547d299c43e0/node_modules/discord.js/src/client/websocket/WebSocketManager.js:133:26)
at MaiClient.login (/rbd/pnpm-volume/39348e56-f62c-4e3f-aeda-547d299c43e0/node_modules/discord.js/src/client/Client.js:223:21)
at processTicksAndRejections (internal/process/task_queues.js:93:5) {
[Symbol(code)]: 'TOKEN_INVALID'
}
SUCCESS! Connected to MongoDB!
ERR! ANISCHEDULE: Missing Data from Database.
No lists were found on the database. Please ignore this message if this is the first time setting the bot.

Help Plz

issues with comands

srry for bothering you but i need your help each time i set up a welcome channel or trying to setup welcome msg, xpreset, xpexcempt, xpenable, welcometoggle, watch, userxpreset, setwelcomech, setsuggestch, prefix, setgoodbyemsg, disableanisched, goodbyetoggle, nonxpchannels, market, leaderboard, inventory, buy, bank i hope you get these fix bc i need help

Small question

Uh, if I try to make some sort of NSFW commands in a separate group, how can I hide it when executing m!help in non-NSFW channels?
(I know this question is silly, meh)

typescript error

const channelID = channel.match(/\d{17,19}/)?.[0];

?. and ;

in setanischedch

Question.

How can I map out all the available commands?

This line didn't provide what I expected:

client.commands.registers

And I also used

for (const group of Object.keys(client.commands.groups)) {
      client.commands.groups.get(group).map(x => x.name)
      }

but it didn't work as I expected, too.

EDIT: Fix misspelled stuff.

Config

what would the config look like?

License

I plan on rescripting this entire bot, will I need to give credit to you after I've rescripted the entire bot?

It was Showing Mongoose Database error

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

I think Reddit changed their JSON

A few days ago I've done the command m!animeme and m!reddit, and both of them works just fine
Today I didn't see any response, and when I check the same code on my another bot, it says cannot read property 'children' of undefined
Can you fix that?

Another small bug!

Describe the bug
Users without description in AL makes the bot fails to send info. I don't know is there any effective way to fix this, but you can make a small function that checks the user description before sending info.

To Reproduce
Steps to reproduce the behavior:
You don't need to do anything, try m!alprofile Jikan and you'll receive the error in the console.
My console error:

TypeError: Cannot read property 'replace' of null
    at Command.run (path_to_cmd\commands\anime\alprofile.js:47:69)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)

Expected behavior
Yea, I expected the error to not happen and the bot successfully sends the message.

Screenshots
I think I don't need to take screenshot since it's very easy to reproduce.

Dotenv install error

Describe the bug
I can't install dotenv on glitch/heroku
Screenshot_2021-06-02-15-52-55-08

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
Whenever I try to install dotenv I get the error

Screenshots
Screenshot Is On the top

Additional context

Remove cooldowns in Anime Command

The anime commands looks cramped. Waiting every 10 seconds is a pain for every command. Please remove this as it will make your Bot service the users better

Font Request

Which font is used at Mai's Profile Card which is in Use Nowadays. Because I tried something like Rank Card but there it shows Sqaure Blocks instead of the Name which contains other Characters then Normal. I also wants to use that font in my Canvs so that it will not show Square Blocks. They look ugly on it.
1625124644435_0_profile

Economy and Levelling

Do you have a discord server???

also how do you make the economy and leveling work???

Anime Announcements

How do you remove an anime from anisched because the m!anisched remove command doesn't work

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.