GithubHelp home page GithubHelp logo

friendo-bot's Introduction

friendo-bot's People

Contributors

ai-pree avatar aravindha1234u avatar buyalsky avatar charlieadavies avatar chrislovering avatar fisher60 avatar gdwr avatar harrisdurrani avatar jbutcher5 avatar jonathan-d-zhang avatar kbots-tech avatar lxnn avatar minalike avatar patryk-tech avatar pree-side avatar ptrstr avatar purefunctor avatar sid200026 avatar uncomfyhalomacro avatar v1nam avatar xithrius avatar zeeshanok 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

Watchers

 avatar  avatar  avatar

friendo-bot's Issues

Share and manage projects

I havent really thought much on this, but I just wanted to add some feature that will manage projects shared in the server.

Blackjack

Create a blackjack game for the bot, should be in the fun.py cog

Todo List Feature

Todo List Feature Ready for Review and Recommendations:

Reason for the feature:

  • Users will be able to make a todo list using the bot.

Just a minor feature that needs some assistance because I lack the experience in making discord bots.

Add dice roll command

Rationale

The bot should have a dice roll command to accompany the coin flip command.

Features

  1. Choose how many dice to roll.
  2. Pick how many sides the dice will have

Automate custom help command

We now have a custom help command, but it depends on being hard-coded. Changes should be made to allow the custom help command to behave similarly to the built-in help command. It should display the command Cog name, commands available, and the brief.

The help command should also provide the description of the command when entering something like .help hello

Reddit API wrapper

Create api wrapper for reddit to pull some memes from related topics. This should serve a single meme upon request (with a command)

reminder count sometimes does not reset if the args were invalid

This happens if a user inputs valid keywords in an invalid way to the bot. The bot expects one time format (i.e .reminder 1 hour do work). If an error is encountered, the reminder count should be reset. But if the args for the command contain all individually valid args, then the command will not error, but a reminder is not properly created.

image

quotes command

I want a quote command, gives good quote embeds, and i will work on this myself

Music Search API

Has someone begun work on a music search command? I could try starting something like that if no one has yet. Looking around it seems like I could do some decent stuff with the iTunes API

Improve to_sponge command

  1. The current version doesn't alternate cases when letters are split by an odd number of punctuation, e.g. "hey! yo" -> "hEy! yO. It should be able to alternate every letter.
  2. The name of the command should be changed to spongify

Paginator

Pagination:

  • ๐Ÿฆ What it does? Page by page interaction, hence its name.
  • ๐Ÿš€ Why we need it? So it won't consume as much space inside a thread. Pagination looks cool and keeps things tidy.
  • ๐Ÿ™‡ Who will work on it? Anyone can help. Preferably, those with more knowledge about discord bots.

Need a math command

a math command with small math functions, also i will be working on this right away

Versioning

We need a stable, long-term solution to automatically manage the version number. This is important to see what version of the bot is running/is being worked on.

Adding pre-commit hooks to workflow

Rationale

pre-commit hooks are a great way of ensuring that source code is properly linted before any commits happen. This would also render formatting commits unnecessary as it is enforced by said tool

Methodology

The pre-commit can be added to the Pipfile using pipenv install --dev pre-commit and initialized using pipenv run pre-commit install once a .pre-commit-config.yaml file is configured. Before committing changes, pre-commit automatically runs scripts to make sure that the files are properly linted, as such, they would also add new changes to said files; the snippet below shows the general workflow involving pre-commit hooks

$ git add .
$ git commit -m "Update bot.py"  # Let's say the pre-commit hook fails
$ git add .                      # Re-add the changed files
$ git commit -m "Update bot.py"  # Commit again

Allow enabling and disabling cogs in settings.py

In order to make the project more accessible to developers, we should allow the disabling of api key dependent cogs in settings.py. We can include commands to disable each cog when running the bot as well. This will allow a user to work on an isolated part of the bot without needing to worry about breaking anything that depends on an account for an api.

An example would be to run python -m bot --no-api or something similar.

Guess the Number: Discord Bot Command

Play the game with the bot to guess the right number within "n" rounds or you lose.
The game will be played in private messages.

Edit: After a few feedbacks, no direct messages and make bound default to 1-100.

Custom help response

Create a custom help command/help output for the bot. The embed should be cleaner than the default and color coded.

Image generator

Allow an abstract image to be generated based on a seed and options.

Fixing up bot/meme_api/memgen.py

This file uses the requests library.

I'm changing things to where the bot initializes a aiohttp.ClientSession object at startup and then uses async with self.bot.session.get(url) as resp: or async with self.bot.session.post(url, data=data) as resp: to request/post from/to APIs.

drink command broken

I have no idea why, needs to be looked into, probably a simple error somewhere in cogs/utilities

Reconfiguring dependencies in the Pipfile

Rationale

pipenv has the ability to separate development dependencies from the project dependencies. This issue aims to resolve the separation between these two groups of dependencies. For future reference, dependencies can be managed like the following:

$ pipenv install discord.py    # To install project dependencies
$ pipenv install --dev pylint  # To install development dependencies
$ pipenv uninstall requests    # To remove dependencies

Missing Docker dependencies for OpenCV

Getting the following errors on docker-compose up:

bot_1  | ImportError: libGL.so.1: cannot open shared object file: No such file or directory
bot_1  | ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

Will provide an updated Dockerfile momentarily.

Fix/todo_list feature

Reason:

.todo_list does not work sometimes. It might be because the wrapper uses asyncio.sleep() which executes the code prematurely.

Edit: we found out that it is not the asyncio.sleep() since it just a wrapper that executes the code after the sleep timer. The problem is we don't know where the error came from. I will read the code more.

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.