flaree / flare-cogs Goto Github PK
View Code? Open in Web Editor NEWVarious cogs written for Red-DiscordBot
License: MIT License
Various cogs written for Red-DiscordBot
License: MIT License
Could you possibly make the embed join message support images? Would be great
So i'm still able to crash it by betting single numbers.
here's a pic of it happening in server and another with the console print
https://i.imgur.com/IBbUbPt.png in discord
https://i.imgur.com/NAaMXg3.png in console
Add content
support so we can have messages in addition to the embeds.
Referencing this discord message
[p]covidnews ru
fails currently with discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body In embed.image.url: Not a well formed URL.
Caused by //url
format
Current JSON API state:
{
"status": "ok",
"totalResults": 8,
"articles": [
{
"source": {
"id": null,
"name": "Gazeta.ru"
},
"author": null,
"title": "Впервые в истории во всех штатах США объявлен режим крупного бедствия - Газета.Ru",
"description": "В США объявлен режим крупного бедствия на всей территории страны из-за пандемии коронавируса COVID-19. Как рассказал глава Белого дома Дональд Трамп, количество новых случаев заболевания в день существенно сокращается. Это, по его словам, говорит о том, что С…",
"url": "https://www.gazeta.ru/social/2020/04/12/13045561.shtml",
"urlToImage": "https://img.gazeta.ru/files3/579/13045579/2020-04-11T181844Z_61316657_RC2I2G9782CQ_RTRMADP_3_HEALTH-CORONAVIRUS-USA-pic905-895x505-85750.jpg",
"publishedAt": "2020-04-12T08:00:50Z",
"content": ", 50 , - COVID-19.\r\n« , , », — .\r\n - , , Fox News.\r\n« , , , », — .\r\n , c USS Theodore Roosevelt 550. CNN, - .\r\n 12 533 20 . , , , . ( ) — 83482 78028 .\r\n , , BFM.\r\n , . , .\r\n BFM, , , .\r\n , . , , , , .\r\n , , .\r\n 13 . , , .\r\n , 15 .\r\n COVID-19 13 13 610.\r\n 103… [+70 chars]"
},
{
"source": {
"id": "rt",
"name": "RT"
},
"author": "RT на Русском",
"title": "Зеленский заявил об усталости из-за пандемии коронавируса - RT на русском",
"description": "Президент Украины Владимир Зеленский заявил, что власти страны устали из-за пандемии коронавирусной инфекции COVID-19, но продолжат борьбу против вируса.",
"url": "https://russian.rt.com/ussr/news/736780-zelenskii-ustalost-koronavirus",
"urlToImage": "https://cdni.rt.com/russian/images/2020.04/article/5e92b80802e8bd38157197a6.JPG",
"publishedAt": "2020-04-12T06:57:16Z",
"content": null
},
{
"source": {
"id": null,
"name": "Rg.ru"
},
"author": null,
"title": "Вирусолог Зуев назвал срок окончания эпидемии COVID-19 в России - Российская Газета",
"description": "ÐпидемиÑ� COVID-19 в РоÑ�Ñ�ии завеÑ�Ñ�иÑ�Ñ�Ñ� в лÑ�Ñ�Ñ�ем Ñ�лÑ�Ñ�ае в иÑ�не. Такого мнениÑ� пÑ�идеÑ�живаеÑ�Ñ�Ñ� виÑ�Ñ�Ñ�олог Ð�икÑ�оÑ� Ð�Ñ�ев. Ð�о его Ñ�ловам, многое завиÑ�иÑ� ох",
"url": "https://rg.ru/2020/04/12/virusolog-zuev-nazval-srok-okonchaniia-epidemii-covid-19-v-rossii.html",
"urlToImage": "//cdnimg.rg.ru/img/content/186/24/00/RIAN_6219109_t_650x433.jpg",
"publishedAt": "2020-04-12T03:25:24Z",
"content": null
},
{
"source": {
"id": null,
"name": "Aif.ru"
},
"author": "Александр Мельников",
"title": "Чем лечат COVID-19. Пока нет вакцины, врачи используют другие препараты - Аргументы и факты",
"description": "Благодаря новостям и социальным сетям мы все стали специалистами по коронавирусной инфекции. Знаем все о том, как распространяется вирус, как защищаться от него, каковы симптомы болезни. Но вот про лекарства мы знаем очень мало.",
"url": "https://aif.ru/health/coronavirus/chem_lechat_covid-19_poka_net_vakciny_vrachi_ispolzuyut_drugie_preparaty",
"urlToImage": "https://images.aif.ru/019/772/45ca56a0109927e5668e28911d59ef3b.jpg",
"publishedAt": "2020-04-11T21:05:15Z",
"content": ", COVID-19? , , . , . — COVID19 . \r\n« COVID-19 , , , , , — . , . — , . , . . , . , , , . . \r\nCOVID-19 . , ». \r\n« »\r\n , « ». , (, SARS) (, MERS), , , , . \r\n : COVID-19 -, , , , , . - , , , . , , COVID-19. \r\n , . . \r\n, , . .\r\n/. . SARS MERS — - COVID-19. … [+308 chars]"
},
{
"source": {
"id": "rt",
"name": "RT"
},
"author": "RT на Русском",
"title": "В Москве умерли 14 пациентов с коронавирусом - RT на русском",
"description": "В Москве от последствий заражения коронавирусной инфекцией COVID-19 умерли 14 пациентов. Об этом сообщили в столичном оперативном штабе по борьбе с вирусом.",
"url": "https://russian.rt.com/russia/news/736733-moskva-14-umershih-koronavirus",
"urlToImage": "https://russian.rt.com/static/blocks/og-img/pl-17.jpg",
"publishedAt": "2020-04-11T21:00:13Z",
"content": null
},
{
"source": {
"id": null,
"name": "Iz.ru"
},
"author": "Анастасия Астахова",
"title": "Число заразившихся коронавирусом в Подмосковье превысило 1 тыс. человек - Известия",
"description": "Число заболевших COVID-19 в Подмосковье превысило тысячу человек. Об этом на своей странице во «ВКонтакте» сообщил губернатор области Андрей Воробьев.По словам губернатора, среди заболевших становится всё больше пациентов с пневмонией. Чтобы облегчить нагрузк…",
"url": "https://iz.ru/998437/2020-04-10/chislo-zarazivshikhsia-koronavirusom-v-podmoskove-prevysilo-1000-chelovek",
"urlToImage": "http://cdn.iz.ru/sites/default/files/styles/900x506/public/news-2020-04/BP203204.JPG.jpg?itok=1OyDNc39",
"publishedAt": "2020-04-10T20:52:40Z",
"content": "COVID-19 . «» .\r\n , . , , , .\r\n . QR-, . , .\r\n. , .\r\n« . . », .\r\n29 1 - . : , .\r\n COVID-19, SARS-CoV-2, . 200 . 11 () . 10 , 11 917 COVID-19, 1786 . 795 . 94 .\r\n . ., #. « » : 8-800-2000-112."
},
{
"source": {
"id": null,
"name": "Rambler.ru"
},
"author": null,
"title": "Nature (Великобритания): как убивает COVID-19? Сомнения мешают врачам правильно подбирать лечение - Рамблер/новости",
"description": "Как убивает COVID-19? Сомнения относительно того, что именно поражает человеческие органы — сам вирус или ответ иммунной системы инфицированного, мешают врачам найти оптимальные способы лечения пациентов, страдающих от коронавируса в…",
"url": "https://news.rambler.ru/tech/43996322-nature-velikobritaniya-kak-ubivaet-covid-19-somneniya-meshayut-vracham-pravilno-podbirat-lechenie/",
"urlToImage": "https://img02.rl0.ru/49f6ecc89050a04d353bfe705987c6ba/e600x400o-x0i/news.rambler.ru/img/2020/04/10/232409.562721.7791.jpg",
"publishedAt": "2020-04-10T12:56:00Z",
"content": "« , , , (Daniel Chen), - «-- » (IGM Biosciences). , ».\r\n« , , , , (Kenneth Bailli), . , ».\r\n, , , . , . , COVID-19 , , . , -6 (IL-6). IL-6 , , . , . , , , .\r\n , , -6 . , IL-6… [+567 chars]"
},
{
"source": {
"id": null,
"name": "Ussurmedia.ru"
},
"author": null,
"title": "Врач рассказал о страшных последствиях коронавируса - UssurMedia - новости Уссурийска и Приморья",
"description": "Вирусолог сообщил об опасных последствиях коронавируса для организма человека. В частности, COVID-19 может провоцировать развитие инсультов и инфарктов.",
"url": "https://ussurmedia.ru/news/931045/",
"urlToImage": "https://primamedia.gcdn.co/f/main/2062/2061712.jpg?a099500b707fafba346468db3fb88c7e",
"publishedAt": "2020-04-10T07:40:10Z",
"content": "COVID-19 . , COVID-19 .\r\n . .\r\n \" \" -, () , . , . , , .\r\n , COVID-19, - . , .\r\n© 20052020 PrimaMedia"
}
]
}```
It would be nice to also have the option to store an embed from a message directly to an embed instead of JSON file you then need to upload to create the embed.
So like embed from <message_id> [channel] [name] [embed|json]
or something similar.
It was very handy in the old cog.
Describe the bug
When trying to run the !stick command on an image the process fails and the bot messages "An error occured during the creation of the stick bugged video". The plugin worked when I installed it a few weeks ago, but when someone tried to use it last night it wouldn't work. I'm using this docker container to run my bot https://github.com/PhasecoreX/docker-red-discordbot. I have already tried rebooting the system, updating the docker container, and updating my installed cogs.
Here is the console output from when the command is run:
Moviepy - Building video /data/cogs/StickBugged/916373653183164457stick.mp4.
MoviePy - Writing audio in 916373653183164457stickTEMP_MPY_wvf_snd.mp3
chunk: 0%| | 0/341 [00:00<?, ?it/s, now=None]
chunk: 8%|▊ | 27/341 [10:59:08<127:45:37, 1464.77s/it, now=None]
chunk: 8%|▊ | 27/341 [10:59:08<127:45:37, 1464.77s/it, now=None]
[2021-12-03 09:01:45] [ERROR] red.flare.stick: Error sending stick bugged video
Traceback (most recent call last):
File "/data/cogs/Downloader/lib/moviepy/audio/io/ffmpeg_audiowriter.py", line 74, in write_frames
self.proc.stdin.write(frames_array.tobytes())
BrokenPipeError: [Errno 32] Broken pipe
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/data/cogs/CogManager/cogs/stickbugged/stickbugged.py", line 78, in stick
video_file = await asyncio.wait_for(task, timeout=300)
File "/usr/local/lib/python3.8/asyncio/tasks.py", line 494, in wait_for
return fut.result()
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/data/cogs/CogManager/cogs/stickbugged/stickbugged.py", line 43, in blocking
video.write_videofile(
File "/data/cogs/Downloader/lib/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/data/cogs/Downloader/lib/moviepy/decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "/data/cogs/Downloader/lib/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/data/cogs/Downloader/lib/moviepy/decorators.py", line 135, in use_clip_fps_by_default
return f(clip, *new_a, **new_kw)
File "/data/cogs/Downloader/lib/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/data/cogs/Downloader/lib/moviepy/decorators.py", line 22, in convert_masks_to_RGB
return f(clip, *a, **k)
File "/data/cogs/Downloader/lib/moviepy/video/VideoClip.py", line 293, in write_videofile
self.audio.write_audiofile(audiofile, audio_fps,
File "/data/cogs/Downloader/lib/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/data/cogs/Downloader/lib/moviepy/decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "/data/cogs/Downloader/lib/moviepy/audio/AudioClip.py", line 206, in write_audiofile
return ffmpeg_audiowrite(self, filename, fps, nbytes, buffersize,
File "/data/cogs/Downloader/lib/decorator.py", line 232, in fun
return caller(func, *(extras + args), **kw)
File "/data/cogs/Downloader/lib/moviepy/decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "/data/cogs/Downloader/lib/moviepy/audio/io/ffmpeg_audiowriter.py", line 170, in ffmpeg_audiowrite
writer.write_frames(chunk)
File "/data/cogs/Downloader/lib/moviepy/audio/io/ffmpeg_audiowriter.py", line 117, in write_frames
raise IOError(error)
OSError: [Errno 32] Broken pipe
MoviePy error: FFMPEG encountered the following error while writing file 916373653183164457stickTEMP_MPY_wvf_snd.mp3:
b'916373653183164457stickTEMP_MPY_wvf_snd.mp3: Permission denied\n'
In case it helps, make sure you are using a recent version of FFMPEG (the versions in the Ubuntu/Debian repos are deprecated).`
Hey Flare, I was wondering if its possible for you to add d.py support for your embedcreator cog. If it would too much for that cog, maybe a separate cog?
Alternatively, if you don't have time or wish to not spend time on this, was wondering if I was to have your approval to creating a bounty cog for a d.py embed cog that similarly setup to yours in terms of command names? I don't want to request something that is almost an exact copy of your command setup for the cog without you knowing.
When attempting to use the userinfo cog on a bot user, you'll get a Error in command 'userinfo'. Check your console or logs for details
with the following traceback:
Exception in command 'userinfo'
Traceback (most recent call last):
File "/home/twds/.virtualenvs/twds/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "/home/twds/twds/cogs/CogManager/cogs/userinfo/userinfo.py", line 178, in userinfo
sharedguilds = user.mutual_guilds
AttributeError: 'ClientUser' object has no attribute 'mutual_guilds'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/twds/.virtualenvs/twds/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "/home/twds/.virtualenvs/twds/lib/python3.8/site-packages/discord/ext/commands/core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/home/twds/.virtualenvs/twds/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: AttributeError: 'ClientUser' object has no attribute 'mutual_guilds'
Describe the bug
The footer in the embed when you do [p]f1 schedule
says Times displayed are in UTC.
but this is incorrect as the times are now local times thanks to timestamps introduced in f0bfe4d
Output of [p]help CogName and [p]debuginfo
Output of help
Output of debuginfo
"flare: help will truncate it to keep it inline, you have to directly invoke. help for that command to see it"
"Menteroth: Flare, That'd be nice with the menu option for your embed cog heh."
So yeah. When creating an embed menu it would be nice to have the option to truncate the lines or not to make custom help commands with embeds look better.
Describe the bug
Opening the match room link in most recent matches returns a 404
Link it gave - https://www.faceit.com/%7Blang%7D/csgo/room/1-774a7cbb-8361-4b2f-a609-ac0649ca872d
Match room link - https://www.faceit.com/en/csgo/room/1-774a7cbb-8361-4b2f-a609-ac0649ca872d/scoreboard
Looks like it's trying to figure out the language of the site to load it in and not finding it? I'm not sure though
Describe the feature you'd like
Currently I have a highlight setup for my user id, however, when someone mentions you the cog sees the ID in the mention and still sends you the highlight. What I am wanting is that if a user is running a command but with my ID (no mention) the bot picks this up, and just ignores mentions containing your ID. I hope that makes sense lol. Additionally, showing the timestamps of the messages in the highlight message would be amazing. I'll attach an example image.
Additional context
No other additional information.
This is a feature request to add a search command to the cmd
group command. This would allow one to search the command stats config for all uses of commands that contain the given search string, and display/pagify it in the command stats leaderboard menu.
Example:
[p]cmd search tag
Command Times Used
tag:cu 1020
g-tag:purge 232
tag:nickme 14
as title says, I would like to be able to set either a start or end time and date, so I could more accurately run giveaways (we run them weekly on our discord and would like to start using the bot). It tends to be a bit of an issue trying to time them correctly to end the way we would like them to.
JSON also supports multiple embeds (or embed list) and Discord doesn't allow bots to post multiple embeds in a single message but webhooks can. It would be cool to be able to use webhooks for multiple embeds as well as editing those embeds because I've seen edited webhook messages.
[p]embed webhook create [channel] [name]
← Creates a webhook in the channel you specify with the name of the webhook. If no channel was specified, it'll use the channel it was used in. If no name was used, it'll use the bot's name instead. Webhook avatar uses the bot's avatar.
[p]embed webhook edit <webhook_url> <raw_json>
← Uses the provided webhook url and edits the message by pasting raw json.
[p]embed webhook edit <webhook_url> <file>
← Same as above but uploading a json file instead.
[p]embed webhook send <webhook_url> <raw_json>
[p]embed webhook send <webhook_url> <file>
Describe the feature you'd like
I'd like to be able to !list [user] and see their balance of crypto coins.
I'm running your unbelievaboat - roulette on my server. The wheel tends to get stuck on "the wheel is spinning" if people place single number bets between 1-36. zero seems to be exempt from this bug. the result never comes out and you can't start a new spin until you restart the bot or unload/load unbelievaboat again
Describe the bug
Loading module F1 results in an error of not finding the module Tabulate. Installed it manually into the Docker Environment, but no results either.
ModuleNotFoundError: No module named 'tabulate' [2021-12-06 17:46:34] [ERROR] red: Package loading failed Traceback (most recent call last): File "/data/venv/lib/python3.8/site-packages/redbot/core/core_commands.py", line 176, in _load await bot.load_extension(spec) File "/data/venv/lib/python3.8/site-packages/redbot/core/bot.py", line 1510, in load_extension lib = spec.loader.load_module() File "<frozen importlib._bootstrap_external>", line 522, in _check_name_wrapper File "<frozen importlib._bootstrap_external>", line 1022, in load_module File "<frozen importlib._bootstrap_external>", line 847, in load_module File "<frozen importlib._bootstrap>", line 265, in _load_module_shim File "<frozen importlib._bootstrap>", line 702, in _load File "<frozen importlib._bootstrap>", line 671, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 843, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "/data/cogs/CogManager/cogs/f1/__init__.py", line 1, in <module> from .f1 import F1 File "/data/cogs/CogManager/cogs/f1/f1.py", line 7, in <module> import tabulate ModuleNotFoundError: No module named 'tabulate'
Output of [p]help CogName and [p]debuginfo
CPU Cores: 8 (x86_64)
RAM: 2.6GB/7.7GB (45.8%)
OS version: Debian GNU/Linux 11
User: docker
Python executable: /data/venv/bin/python
Python version: 3.8.12 (64bit)
Pip version: 21.3.1
Red version: 3.4.14
Discord.py version: 1.7.3
Instance name: docker
Owner(s): 238674481470504964 (ItsFlokkie#0001)
Storage type: JSON
Disabled intents: None
Data path: /data
Metadata file: /usr/local/share/Red-DiscordBot/config.json
Message #bot-setup
Add a toggling [p]lock [channel]
command that restores previous permissions when unlocking a channel. If used the command without specifying a channel, have it lock/unlock in the channel the command was ran in.
Cogs currently ready for Red 3.5/Discord.py 2.0
Cogs not tested:
Cogs needing changes:
Is embed editmsg
like Sinbad has in his embed cog something you'd consider? I know changing an embed in a message is a great help when you have a bunch of embeds in an info/rule channel for a server. Reposting them all just to change one message would be quite the hassle.
Some extra info taken from the old cog.
Syntax: +embed editmsg <message> <embedname> [use_global=False]
Edits an existing message by channelID-messageID to have an embed (must be saved)
Is it possible to have modmail setup so that it responds via a command to forward the message? Currently it seems that modmail is just the forwarder cog with a different name and can forward to a channel. it would be nice if there was a additional settings to allow modmail to only be triggered when the person does !modmail in dms or a channel so that admins/mods dont get bombarded with all of the dms to the bot since some people tend to use dms for other stuff such as payday or other similar commands
The crypto cog has a delay because of the CMC api giving delayed prices, thus users can scalp while knowing what the future price will be. it scales really fast with large numbers, easily hitting max balance after a number of days
I think in order to fix this, when placing a buy or sell order with the crypto cog, it needs to execute in 1-2minutes with the new price.
Describe the bug
I tried the addmoneyrole from unbelievaboat because i was going to add money to all members in a specific role. when i use the command, a checkmark reaction appears, but when i try to check the balance either wallet or bank, the value doesn't change at all.
Output of [p]help CogName and [p]debuginfo
DEBUGINFO
Debug Info for Red
Red version
3.4.7
Python version
3.8.7 (64bit)
Discord.py version
1.6.0
Pip version
21.0.1
System arch
x86_64
User
mkurisu069
Storage type
JSON
Disabled intents
None
OS version
Ubuntu 18.04
Python executable
/home/mkurisu069/redenv/bin/python
Data path
/home/mkurisu069/.local/share/Red-DiscordBot/data/Redbot
Metadata file
/home/mkurisu069/.config/Red-DiscordBot/config.json
HELP
Unbelievaboat Commands.
Cog Version: 0.5.7
Commands:
addmoneyrole Add money to the balance of all users within a role.
cooldowns List your remaining cooldowns..
crime Commit a crime, more risk but higher payout.
deposit Deposit cash from your wallet to your bank.
removemoneyrole Remove money from the bank balance of all users...
rob Rob another user.
rouletteset Manage settings for roulette.
unbset Manage various settings for Unbelievaboat.
wallet Wallet commands.
Commands: (continued)
withdraw Withdraw cash from your bank to your wallet.
work Work for some cash.
Type !help for more info on a command. You can also type !help for more info on a category.
People are robbing, then emptying their wallets so they can not be robbed. Is there a way to combat this ? for the time being I set a deposit cooldown to 3 days.
Describe the bug
Command fails when Economy and Adventure is loaded:
Exception in command 'userinfo'
Traceback (most recent call last):
File "/Users/clasko/Development/clasko-cogs/.venv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "/Users/clasko/Library/Application Support/Red-DiscordBot/data/Jarvis/cogs/CogManager/cogs/userinfo/userinfo.py", line 350, in userinfo
adventure_currency = await adventure_bank.get_balance(user)
AttributeError: module 'adventure.bank' has no attribute 'get_balance'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/clasko/Development/clasko-cogs/.venv/lib/python3.9/site-packages/discord/ext/commands/bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "/Users/clasko/Development/clasko-cogs/.venv/lib/python3.9/site-packages/discord/ext/commands/core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/Users/clasko/Development/clasko-cogs/.venv/lib/python3.9/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: AttributeError: module 'adventure.bank' has no attribute 'get_balance'
Cog Version is 0.3.1
CPU Cores: 10 (arm64)
RAM: 6.9GB/16.0GB (68.0%)
OS version: Mac OSX 12.2 arm64
User: clasko
Python executable: /Users/clasko/Development/clasko-cogs/.venv/bin/python
Python version: 3.9.7 (64bit)
Pip version: 22.0.3
Red version: 3.4.16
Discord.py version: 1.7.3
Instance name: Jarvis
Owner(s): 183628039245004800 (Clasko#1337)
Storage type: JSON
Disabled intents: None
Data path: /Users/clasko/Library/Application Support/Red-DiscordBot/data/Jarvis
Metadata file: /Users/clasko/Library/Application Support/Red-DiscordBot/config.json
Describe the bug
Attempting to have multiple embeds in the same message outputs an error. I also found this website where it shows you how to have multiple embeds in the same message: Discohook.org
Output of [p]help CogName and [p]debuginfo
Here is the [p]help EmbedCreator, and [p]debuginfo
Describe the feature you'd like
From a privacy perspective I think it would be better if the verification process happens in the bots dms instead of a channel. This would reduce or remove the risk of leaking your own email to other users - although this could also be solved by having a write access only channel with read permissions denied.
when doing [p]snipeset deletetime 60
it doesn't seem to change anything
what is the intent of "deletetime"?
Our first thought is that it would delete the displayed snipe after so long, but then what we concluded and made more sense is how long it keeps track of messages to see if they may be deleted. That also turned out not to be the case
However, the only thing that seems to function is [p]snipeset time 15
This example will only keep track of messages that were sent in the last 15 seconds
AND gives 15 seconds to snipe it if it gets deleted
is "time" just overriding the "deletetime"?
It would be nice if it kept track of messages per user as well, but not a big deal, just would be nice if we at least knew what "deletetime" was supposed be doing. We wanted a shorter time to snipe, but a longer time after a message is sent. We ended up going with something like 25s as a balance as they are both tied to "time"
EDIT: also, there is no way that we see to display current settings from within Discord
CPU Cores: 24 (x86_64)
RAM: 41.4GB/125.8GB (31.2%)
OS version: Debian GNU/Linux 10
User: container
Python executable: /usr/local/bin/python
Python version: 3.8.6 (64bit)
Pip version: 20.2.3
Red version: 3.4.13
Discord.py version: 1.7.3
Instance name: pterodactyl
Owner(s): 123456789123456789 (redacted#1234)
Storage type: JSON
Disabled intents: None
Data path: /home/container/.local/share/Red-DiscordBot/data/pterodactyl
Metadata file: /usr/local/share/Red-DiscordBot/config.json
In the cog server at: https://discordapp.com/channels/240154543684321280/240212783503900673/751453769388130376
An older adventure cog will not have the attribute referred to in https://github.com/flaree/Flare-Cogs/blob/407eb62648205e6f206fbedc47970c7b3fc66ccd/userinfo/userinfo.py#L265
Describe the bug
A clear and concise description of what the bug is.
Output of [p]help CogName and [p]debuginfo
Paginate highlight list.
Maybe add an option to be able to add the Discohook URL for the embed you want to store.
It's kind of messy to edit a JSON embed that has a large amount of text when you need to make changes.
So when you want to show this URL you type something like embed info <embed_name>
and you get the embed name and just the Discohook URL in a small embed.
As an example. Like this but replace my name with the embed name and then text below is the link.
Hi, I was wondering whether you would be interested in adding the ability to specify the channel where the embed will be posted when sending an embed. For example, if you are in a large server and want to send an announcement, you could run the "[p]embed json #announcement (json code)" in a botcommands channel
This would post the announcement in that channel without having to send the command in that channel.
Hi,
I've created a set of embeds in our server and assigned the [p]embed send commands for each of them to an alias for other users to use. Unfortunately sending of these embeds only works for me. Other users have tried both the aliases and the send embed command directly with no luck.
Is there an option to enable this somewhere in the cog? If not, is it possible to have this added/fixed?
Roulette has a few bugs.
1st half and even includes 0.
Odds of it landing within 1st half is substantially higher opposed to 2nd half or anything else
Max bet can be circumvented by just betting again on the same thing.
Other than that , users seem to really enjoy it.
Describe the bug
Even after setting a highlight cooldown of 60s, I kept getting highlights. You can check the context in #testing (Red) after this message.
I set the cooldown after roughly 20 dms and, it went up every time someone triggered my highlights even after setting the cooldown.
Output of [p]help CogName and [p]debuginfo
[p]help Highlight
[p]debuginfo
I have no idea if this is plausible but it would be really cool.
So if you wanted to like create a help with custom commands/aliases or whatever to show.
That might grow into a very long embed when it's posted or perhaps ending up having too many characters for one embed.
My suggestion/question is if it would be possible to have options to decide what text would be on what page of several embeds.
You define how many pages you want it to have. You give it an embed for a specific page. One at a time or something. Like an interactive option like some cogs use. Or whatever works better.
embed menu <pages>
After that you get questions to upload an embed for page 1, then page 2 and so on.
Finally when using the command that is aliased to drop page 1, or something just pulling this out of the blue, it will know that this embed has more than one connected to it and will add the left/right arrows to change page and also the crossmark so you can delete if you want.
I hope I didn't leave anything out from my mind to try and explain it. But I think you probably get what I mean.
Would it be possible to have words be highlighted in all channels, please? Having it as a toggle option would be useful. Thanks.
Describe the bug
Fails to install the r6 cog everytime I try I get the error below. I tried to bypass it by manually installing pillow in CMD using pip3 install pillow but that didn't seem to help anything.
[11:50:19] ERROR ERROR: Exception: [red.downloader]
Traceback (most recent call last):
File "c:\users\administrator\redenv\lib\site-packages\pip
_internal\cli\base_command.py", line 180, in _main
status = self.run(options, args)
File "c:\users\administrator\redenv\lib\site-packages\pip
_internal\cli\req_command.py", line 204, in wrapper
return func(self, options, args)
File "c:\users\administrator\redenv\lib\site-packages\pip
_internal\commands\install.py", line 449, in run
self._handle_target_dir(
File "c:\users\administrator\redenv\lib\site-packages\pip
_internal\commands\install.py", line 503, in
_handle_target_dir
shutil.rmtree(target_item_dir)
File "C:\Python38\lib\shutil.py", line 740, in rmtree
return _rmtree_unsafe(path, onerror)
File "C:\Python38\lib\shutil.py", line 618, in
_rmtree_unsafe
onerror(os.unlink, fullname, sys.exc_info())
File "C:\Python38\lib\shutil.py", line 616, in
_rmtree_unsafe
os.unlink(fullname)
PermissionError: [WinError 5] Access is denied: 'C:\Users
\Administrator\AppData\Local\Red-DiscordBot\Red-Discord
Bot\data\ExpeditionBot\cogs\Downloader\lib\PIL\_imag
ing.cp38-win_amd64.pyd'
[11:50:32] ERROR Something went wrong when installing the following [red.downloader]
requirements: pillow
Hey,
first and foremost thanks for the work you put into your plugins! But unfortunately I'll have a problem to get it running again.
It was working for months without a problem but now it doesn't work anymore.
I use it on the r/ASRock Discord for getting the latest posts of the subreddit into specified channel. I already reinstalled it but everytime I try to use this command "!redditpost add ASRock subreddit-posts" the bot comes back with this massage "Please ensure the subreddit name is correct." - So I did and thought maybe trying it all lower case but same story. Also tried it with a different subreddit (AMD) also no dice.
Here's the outcome of "!help redditpost"
and here the outcome of debuginfo
CPU Cores: 6 (x86_64)
RAM: 1000.1MB/15.6GB (7.9%)
OS version: Ubuntu 20.04
User: redbot
Python executable: /home/redbot/redenv/bin/python
Python version: 3.8.10 (64bit)
Pip version: 21.2.4
Red version: 3.4.13
Discord.py version: 1.7.3
Instance name: redbot
Owner(s): 128184564915896320 (CornFlakes#7703)
Storage type: JSON
Disabled intents: None
Data path: /home/redbot/.local/share/Red-DiscordBot/data/redbot
Metadata file: /home/redbot/.config/Red-DiscordBot/config.json
Add a command that displays a “leaderboard” of the guilds with most/least commands, with the option to reverse the order it displays in.
Hi Flare,
I'm currently using another bot to track COVID stats but would prefer to use your cog on my own bot.
The majority of my server is US based, would it be possible to have a breakdown by state?
Such as: [p]cov region usa ca to list the statistics for California.
A top 10 cities within a region would also be nice.
Thanks.
Timed Mute seems to add 4 hours to the mute time. When muting someone for 1 min (*mute @user 1m reason) it responds with the correct mute time. But does not unmute them in 1 min. When using mute list it shows they are muted for 4 hours x secs.
Describe the bug
d.py strikes again. Embeds can have a length of 0. You can do this with sending a embed with just a image, which discord handles just fine.
Using [p]embed from
on a embed created with another cog yields:
{
"image": {
"url": "https://i.imgur.com/eujcjNp.png",
"proxy_url": "https://images-ext-2.discordapp.net/external/rjASdEAfp-7dUHCkwO8i5bMlrg-IGC5N6O1OYcCsrIk/https/i.imgur.com/eujcjNp.png",
"width": 734,
"height": 129
},
"color": 7562986,
"type": "rich"
}
Trying to replace the image with
{
"image": {
"url": "https://i.imgur.com/V9vm6q9.png"
},
"color": 7562986
}
triggers said check, although the embed is in fact valid.
I have no idea on the best way to make this check work(this would then be another PR), short of removing the minimum length, or add an explicit check for attributes that can be alone, such as image.
It would be neat if forwarder could also forward the dms to the bot to a specific channel, similar to modmail, but more similar to errorlogs, so i one could funnel the bot dms to a specific channel say in another server for review if they dont want to recieve all the pms from the bot with what others are saying, but still want to be able to review them if needed
It would be convenient for how we're using commandstats
to be able to export the statistics to a file (e.g. in .csv format).
This would be good for economy of cogs that use Red's Bank - for example - it could prevent people from putting all their money into the wallet before doing a rebirth in Adventure cog.
I think making it just so that you can't withdraw more money from the bank but still can get money from other unbelievaboat's sources if you reached max amount would be okay but you could just as well prevent getting any money into the wallet once max is reached, it would probably require you to make more changes though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.