aioxas / ax-cogs Goto Github PK
View Code? Open in Web Editor NEWSearch, retrieval, and random utility cogs for Red Discord Bot.
License: MIT License
Search, retrieval, and random utility cogs for Red Discord Bot.
License: MIT License
Hi there - on the v2 version (but I assume it would be the same for v3), all image searching returns no results for all queries, both single words (i.e 'test') and phrases. All that is returned is "Your search yielded no results." I attempted to modify the code just to see if a valid list of links was being printed and there was some other error, however it appears to return an empty list when I print the
'query_find = self.regex[0].findall(unicoded)'
variable to console, when it should normally be a list of URL's I assume. My best guess is that something has changed and the regex needs to be updated, but all that regex stuff is beyond me.
Issue has been for the past few days, I can test on the v3 version of the cog as well, however I assume it would be the same - I tried on a seperate bot I have also on v2 on a different IP and all that and it was no different, also tried making sure was on latest version and everything else of that nature. Again, this seems to apply with all image queries regardless of setup (for me).
Thanks for the help.
Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/core.py", line 50, in wrapped ret = yield from coro(*args, **kwargs) File "/root/Red-DiscordBot/cogs/lootbox.py", line 143, in info await self.bot.say("You can get the following items from the box:\n{}".format("\n".join(box))) File "/usr/local/lib/python3.5/dist-packages/discord/ext/commands/bot.py", line 309, in _augmented_msg msg = yield from coro File "red.py", line 97, in send_message return await super().send_message(*args, **kwargs) File "/usr/local/lib/python3.5/dist-packages/discord/client.py", line 1152, in send_message data = yield from self.http.send_message(channel_id, content, guild_id=guild_id, tts=tts, embed=embed) File "/usr/local/lib/python3.5/dist-packages/discord/http.py", line 199, in request raise HTTPException(r, data) discord.errors.HTTPException: BAD REQUEST (status code: 400)
Unable to show information about the Lootbox, due to the message being too long.
Unable to use >box sim "winter"
without following it with a set item that is always present in the box. Scenario for where no such item exist has not been included.
Unable to add multiple items when creating a new box, due to the Discord Message Length Limit. Having to edit servers.json
to add multiple such items.
Using the google command errors out and using traceback it says that it can't send an empty message.
Having Horoscope loaded returns a Deprecation warning in console returning
load_bundled_data is deprecated, use bundled_data_path() without calling this function instead.
Hello,
It is possible to do that ?
I explain, when we talk, some people trigger the cog and the bot send the image for nothing, because they won't want to see the emote.
So, it's possible to call an emote only with the emotename and not in the sentence.
Hello there!
I wanted to suggest you to add your repo to the unapproved repo list in Red-Index. Red-Index is auto indexer of repositories and cogs for Red-DiscordBot with web interface (https://index.discord.red) and cog interface (Index by Twentysix26) that allow users to browse cogs with ease. We're very interested in expanding our list of unapproved repositories (as well as getting new applications for approval, if you're interested in that ๐) to ease the experience for Red users even more.
We accept PRs from repo authors that want to add their own repositories to the unapproved repository list.
Check it out:
https://github.com/Cog-Creators/Red-Index#red-index
advgoogle no longer works on the updated version of red. Giving the error:
RuntimeError: The AdvancedGoogle cog in the advgoogle.advgoogle package does not inherit from the commands.Cog base
class. The cog author must update the cog to adhere to this requirement.
Google search has its own mechanism to detect unusual traffic and when it's detected, you got temporary block (or worse, a permanent block). The block (said by someone from Google support forum) last for 8 hours (after the request is stopped completely).
Now, advgoogle at its first release, has a 20 seconds cooldown per user, which then I myself, extend it via #13 to 20 seconds cooldown per channel. However, even with per channel cooldown, it is still too fast for Google since a server where my bot is used, manage to abuse it to the extent that my server get a temporary block.
Imagine a server with 10 active channels and each channels can at most do 5 google search per minute, that's 50 google search per minute. It's unusual from Google' point of view. I manage to do a workaround while being temporarily blocked by using aiosocks
and a socks proxy.
Considering what has happened, I am proposing several ideas
I know you don't maintain this repo anymore but if you can find the time to update your horoscope cog to work with red3.5 it would really mean a lot to my 650k users who use this regularly.
Thank you
Would it be possible to change the balance command from !balance to !points balance? It interferes with the vanilla economy cog. I wanted to have a currency and point system on the bot.
Adding to this, when actually trying to grant points, I get an error.
http://sentry.imjake.me/share/issue/352e313438/
Thanks so much.
It would per server.
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.