GithubHelp home page GithubHelp logo

arielbeje / ubot Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 4.0 487 KB

µBot, previously Cheap Ripoff 9000/Good_Bot_Name.

License: MIT License

Python 99.83% Dockerfile 0.17%
bot discord discord-bot hacktoberfest python

ubot's People

Contributors

arielbeje avatar bilka2 avatar burdoto avatar ctrpetersen avatar ocbaker avatar speckledfleebeedoo avatar supersandro2000 avatar tzwaan avatar zirriously avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ubot's Issues

Add Reminder Command

Need to add a background check each second with a dictionary for timestamps and messages.

Also need a function to get time from text, like 1h5m, 1 day, 15 Jun 2018.

Follow inheritance for api lookups

+api LuaPlayer::opened yields Error Could not find LuaPlayer::opened in API because opened is inherited from LuaControl. It would be nice if the bot would follow that inheritance and return the result for LuaControl::opened, possibly with an annotation about the inheritance chain.

Add option to select result on linkmod command

When posting multiple search results, add reactions (1️⃣ through 9️⃣ and :nopath_01:) to either select a result or delete the message.

If a result is selected, edit the embed to show the info for the selected mod.

wishlist: make microbot update or delete comments when the user screws up, so we can pretend it never happened

what?

Either implement one of:

  1. notice when I edit a microbot command message, and then replace the existing response with one based on the new text, or
  2. allow microbot to delete my answers on request, probably via something like "react with skull" or something like that, or
  3. have microbot notice when I delete my message with the command, and remove the response as well, or
  4. if I just got an error on a cog, and I issue a second command to the same cog with no other messages between, remove or minimize any error response to the first command.

...or some other mechanism to let me send the correct command and have the error removed.

why?

In the Factorio discord I use the microbot faq, and custom "link to wiki / api docs", cogs a bunch. Sometimes they don't find what I want, or I mess up the syntax, or whatever.

That gets me a response with an error message that is clear, helpful, accurate, and fairly large. I'd like to correct that and remove the error message, since it only has value to me after initially being displayed.

The what section is my ideas for how this could be reasonable done from the perspective of a user, not as a developer who has studied either the microbot code, or the Discord API. I throw those out there in the hope they are helpful to illustrate what I'm thinking of.

I know that some discord API wrappers mention an event for modified messages, but have never looked inside that sausage factory.

Example error message, as if you didn't already know

image

Add Support for Multiple Servers

Possible solutions:

  • Use a different json file for each server's database.
  • Use a dictionary with server IDs as keys with database info.
  • Use a sqlite db (best option).

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.