Code Monkey home page Code Monkey logo

ax-cogs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ax-cogs's Issues

Image searching for google not working

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.

Lootbox

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.

[Horoscope] Deprecation Warning

Having Horoscope loaded returns a Deprecation warning in console returning
load_bundled_data is deprecated, use bundled_data_path() without calling this function instead.

Trigger the bot only with the word not in sentence

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.

Consider adding your repository to unapproved repo list in Red-Index

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

Red v3 update

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.

[advgoogle] Preventing/Overcoming Google temporary block

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

  • Allow direct and proxied connection toggle on advgoogle
  • Add more search engine options (such as DuckDuckGo) and maybe change the name from advgoogle to advsearch
  • Warn user (and owner) when specific error linked to possibility of Google temporary block to stop using the command for a while
  • Use Google Search API as this is better way of doing the search

[horoscope] dpy2

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

Points System Cog

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.

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.