GithubHelp home page GithubHelp logo

coffeebank / coffee-cogs Goto Github PK

View Code? Open in Web Editor NEW
19.0 4.0 15.0 15.85 MB

Discord bots for webhooks, invite-based welcomes, moving messages, and more โ˜•๐Ÿงฉ

Home Page: https://coffeebank.github.io/coffee-cogs/

License: GNU General Public License v3.0

Python 100.00%
red-discordbot discord discord-bot cogs webhook json moderation emotes welcome-bot spotify

coffee-cogs's Introduction

Hi! I'm coffeebank โ˜•

Who am I? Just a casual web developer, programmer, and Linux user who likes making stuff for fun :)

Join my Discord Join my Matrix

Coding changes expectations....

  • Sometimes, you just need something that isn't bloated, runs locally, and more customized for your needs
  • Sometimes, a service is nice, but it's just missing that one little thing you know only takes a few minutes to code/fix
  • Sometimes, it's wanting to type one last .hug server to your Discord friends, but the bot is requiring you to @mention

Come join me on my journey of stumbling through this wonderful land of code :) I'm no computer science major, but I hope some of my code can be useful to you! Have questions? Reach me on Discord ๐Ÿ“ฌ or Matrix ๐Ÿ“ง


My GitHub Stats

coffee-cogs's People

Contributors

coffeebank avatar vaibhavsys avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

coffee-cogs's Issues

coffeetools: `choose` can be abused to spam links and mentions

Because the text is just returned, this can be abused to elevate privileges and send links with nasty link previews, abuse @/everyone pings, among many other potential violations.

async def choose(self, ctx, *, choosetext):
    choosearray = choosetext.split("|")
    return await ctx.send(random.choice(choosearray))

Suggestions for hellohook cog

hellohook please support the following variables (print(abs(int(744)) % 10) # 4)
https://&&SERVERCOUNT&& - Number of members
https://&&ORDSERVERCOUNT&& - Number of members but with th, rd, nd

Also have the ability to set a leave webhook and a join webhook to be able to support the following
image

Error when sending the command [p]hellohook settings or [p]hellohook test

`Traceback (most recent call last):
File "{HOME}/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 229, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{HOME}/red/cogs/CogManager/cogs/hellohook/hellohook.py", line 201, in hellohooksettings
e2.add_field(name="Leave Webhook", value="||"+self.validChecker(guildData.get("leaveWebhook", None))+"||", inline=False)
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TypeError: can only concatenate str (not "NoneType") to str

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "{HOME}/redenv/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 1350, in invoke
await ctx.command.invoke(ctx)
File "{HOME}/redenv/lib/python3.11/site-packages/redbot/core/commands/commands.py", line 783, in invoke
await super().invoke(ctx)
File "{HOME}/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1642, in invoke
await ctx.invoked_subcommand.invoke(ctx)
File "{HOME}/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1023, in invoke
await injected(*ctx.args, **ctx.kwargs) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "{HOME}/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 238, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: can only concatenate str (not "NoneType") to str`

sendhook: can't send webhooks anymore

Exception in command 'sendhook'
Traceback (most recent call last):
  File "/x/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/x/cogs/sendhook/sendhook.py", line 86, in sendhook
    hook = Webhook(webhookAlias[webhookUrl])

TypeError: __init__() missing 1 required keyword-only argument: 'adapter'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/x/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 939, in invoke
    await ctx.command.invoke(ctx)
  File "/x/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 863, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/x/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 94, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: __init__() missing 1 required keyword-only argument: 'adapter'โ€Š

jsonrequest: Add option for 2000+ characters

Currently json responses longer than 2000 characters is cropped and lost forever, this could be split into different messages with a max messages cap to work around the limit.

๐Ÿ“Œ Slash Commands

Hey everyone,

This is an update and a request for contributors to help migrate coffee-cogs to Slash Commands.

Currently, coffee-cogs is interested in adding support for Slash Commands, but plans for the migration are moving very slowly.

If you actively use a cog, and are looking forward to Slash Commands, please let me know below/in the Discord. Pull requests are welcome!

  • Hybrid commands are the focus right now, but code PRs to your convenience, and I can review as necessary.

msgmover: Make it so msgcopy happens over a period of time

Due to ratelimitting, it stops working after 10-20 messages with an error. If it moves messages from one channel to another channel/server by sending one message every 5 seconds or so, there would be no issue with rate limiting and it can take however long it wants.

๐Ÿ“Œ coffee-cogs and Red 3.5

Hey everyone,

Wanted to post an update in regards to coffee-cogs and the latest Red 3.5 update, which finally comes with Discord.py v2.

Since it's a large update, I expect large parts of code will need to be rewritten.

There is no ETA, and it may take a while. Feel free to join the Discord for progress updates.

Here's my priority list:

Help is appreciated. Feel free to make pull requests, especially if it's simple fixes that can bring a smaller cog back to life!

Thanks for your patience, and for enjoying coffee-cogs :) โ˜•๐Ÿฆ

google: .format

google cog could be updated to use "string".format(var) to allow for search strings in the future that may have their search query in the middle of the url

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.