Code Monkey home page Code Monkey logo

mzbot-v2's Introduction

Hobbyist chess engine developer. Currently also working on a couple of other projects.

mzbot-v2's People

Contributors

xinthedark avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

mzbot-v2's Issues

PyDictionary not working

.define now does not return anything, and instead reports an error. In the logs, it reports "List index out of range".

This problem should be specific to Repl.it

Don't automatically install dependancies in `main.py`

Automatically installing packages for the user with os.system should be avoided, as commands like pip install -r requirements.txt aren't guaranteed to work all the time (e.g. if there is more than one version of python installed or pip isn't in PATH). Just the requirements.txt file is enough to indicate the dependancies and you should tell the user how to install them instead of doing it for them.

Tidy up code

Tidy up the code; for example: remove unnecessary code and comments, and clean up the code to make it more readable.

Also improve code formatting. Readability is important.

Bot breaks upon startup

Currently, the bot is restarting very frequently (~70-80+ times a day), and commands seem to work for a very short period of time before they break.

This should be due to the "OpenAI moderation" feature added in 942b55b.

If there are no possible fixes, I will revert that commit.

I'm stopping development of this project

MZ Bot has been amazing. I have developed it for more than a year now, and all sorts of useful features have been added. I also thank the Discord community for actively using and providing feedback on my bot.

However, I now announce that I will no longer be actively developing the bot.

Not that there is anything in particular that I hate. I am stopping development for a variety of reasons, for example:

  1. I do not have so much time to work on this bot now.
  2. I believe that the bot is almost "complete", and there are not many new features to be added. Despite that, I recognise that there are many bugs to be fixed and features to be enhanced, but those are no longer a top priority for me.
  3. I do not agree with the general direction of how Discord is developing the bot system (see this thread by Rapptz, the creator of discord.py). Discord is currently strongly encouraging every bot developer to switch to slash commands. In the future, it is highly probable that they will force everyone to use slash commands; However, it is clear to me that the slash commands system was not developed properly. For example, using a slash command is around 5 times slower than using normal text commands: you have to first type the command, wait a split second for all the commands to load, choose the command you want, then enter parameters, and finally wait for the bot to respond.
  4. I do not have the time and patience to migrate to slash commands, and I think that it is useless to do so. Everyone on Discord is much more familiar with text commands.

To clarify: I don't think slash commands are a bad idea in general, but the way Discord has implemented slash commands shows that they have not put much thought and effort into it.

Open source projects are a great idea; I will probably be creating them and/or be contributing to them in the future. For now, it is more important that I learn some programming skills.

Bye.

TL;DR: I will no longer be a Discord bot developer. I still want to develop software though.

Add more advanced error handling

It is crucial that the bot knows how to handle unexpected errors.

Timeline:

  • In 25caf75, basic error handling was mostly complete.
  • Then, I realised that when hosting on Replit, many repls share the same IP address; hence it is common to be rate limited by discord.
    • In 36b4c0e, a small bypass was added.
    • In 3c516e8, the (mostly) complete bypass was added.

However, there are many other use scenarios and errors that are not handled properly as of now. It is important that we fix these errors, making the bot more stable, before adding new functionality.

Our goal for now is simple: to ensure that the bot can run automatically and completely on its own, without any human intervention or maintenance.

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.