Coder Social home page Coder Social logo

predacogs's Introduction

πŸ‘‹ Hello there

πŸ’β€β™‚οΈ About me

  • I am a self-taught and now freelance developer.
  • I am currently working as a full time software developer, since September 2021.
  • Love learning new technologies and languages.
  • Always looking for new projects to work on. πŸ‘€

πŸ› οΈ Personal projects

There are many different projects I am involved with directly or indirectly, most are related around Discord:

  • Martine - A multipurpose Discord bot serving over 50k servers.
  • Martine API - Get random images from Reddit, also do image generation.
  • whatismyti.me - Time utilities meant to get info easily to clipboard.
  • Red-DiscordBot - A multifunction self-hostable Discord bot.
  • Preda Cogs - Various cogs for Red bot.

πŸ’» Languages and techs I work / worked with

  • ⌨️ Python / Javascript / Java / Kotlin / Coldfusion
  • 🐍 discordpy / FastAPI / BS4 & Selenium
  • 🌐 VueJS / Angular / Nest.js
  • :octocat: Git / Github / Gitlab / SVN
  • πŸ—„οΈ Postgresql / MongoDB / MySQL / SQL Server
  • 🐳 Docker / Docker compose
  • πŸ“‘ Reverse proxying / Nginx
  • πŸ’» VPS & Dedicated servers management

πŸ“ž Contact

  • Discord - PredΓ€#1001
  • Mail - contact at martinebot.com

Stats

visitors

predacogs's People

Contributors

aikaterna avatar bencos17 avatar dariusstclair avatar drapersniper avatar fixator10 avatar kennnyshiwa avatar lifeismana avatar malarne avatar motzumoto avatar owocado avatar predaaa avatar ryan5453 avatar vexed01 avatar wyn10 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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

predacogs's Issues

[Converters] One vs. two unit argument conversions are somewhat hard to understand

When a user learns conv works for temperature, which takes two unit arguments, it sets an expectation that other conversions might also work that way:

-conv c f 20

But when they try another conversion that has a "to" argument that is implicit, it fails:

-conv km mi 11

And then they see an error message that does not clearly state what they did wrong:

Converting to "float" failed for parameter "length".

While the help is clear, the difference in UI is not easily discoverable following by example, which is often how users pick things up, being loath to ever consult documentation except as a last resort. ;)

A better error message might help, and/or some flexibility in the handling of arguments (e.g. 2-unit call signatures for the current single-unit conversions with an implicit "to" unit).

[NSFW]Β Checking loop

I've noticed an error using await ctx.bot.send_help_for()

When we're using this method, and when we ask the help of Nsfw cog, there will be a loop saying : πŸ”’ You can't use this command in a non-NSFW channel !

To reproduce that error, create a cog that will use await ctx.bot.send_help_for(), like a custom help command, and use [p]yourCommand Nsfw

grafana β€” resolver not driving to proper display coordinates

After normal setup, the imported panels are as follows (with SS from the web UI)

server_growth, discord_latency, discord_gateway, and panel_17

This is from my web browser
image

However, when trying to pull in the panel ID from invocation of [p]graph <panel_id> I get the following:

image
Note the second image will show on any other panel the same way. These are the only two outputs I am able to retrieve regardless the panel_id that is passed.

Let me know if you need anymore details fam <3

[Converters] help says 'convert' which is not an alias

Either the help is wrong or an alias is missing: The help for [p]conv celsius (for example) says [p]convert even though the Syntax has conv. There is apparently no alias convert and you must type conv ... confusing to some of our users.

[Suggestion] Record of most played games all time.

Is there anyway the cog can keep records of total play time & most played per server and per user?

EG:

These are the server's most played games
β–Έ ROBLOX: 300
β–Έ Minecraft: 214
β–Έ Fortnite: 45

^ And doesn't duplicate from each user either. So if someone plays / quits / plays the same game again, it counts as 1.

Would be nice to have total play time as well if possible / and able to check which games the user(s) are playing from all time.

These are the server's most played game playtime
β–Έ ROBLOX: 5h, 20m
β–Έ Minecraft: 10h
β–Έ Fortnite: 1d, 12h, 1m

But I assume this would require constant checking (or per 5/10 seconds).

Hope it's possible though!

NSFW Cog throws 403 errors randomly

when using the nsfw cog it will what seems to be randomly return Error when trying to contact image service, please try again later. (Code: 403)
but then if you use the same command a second later it will work properly

NSFW Cog doesnt load

[2020-06-11 01:29:04] [ERROR] red: Package loading failed Traceback (most recent call last): File "c:\users\kimch\redenv\lib\site-packages\redbot\core\core_commands.py", line 118, in _load await bot.load_extension(spec) File "c:\users\kimch\redenv\lib\site-packages\redbot\core\bot.py", line 907, in load_extension lib = spec.loader.load_module() File "<frozen importlib._bootstrap_external>", line 462, in _check_name_wrapper File "<frozen importlib._bootstrap_external>", line 962, in load_module File "<frozen importlib._bootstrap_external>", line 787, 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 783, in exec_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "C:\Users\kimch\Desktop\REDV3\cogs\CogManager\cogs\nsfw\__init__.py", line 2, in <module> from .nsfw import NSFW File "C:\Users\kimch\Desktop\REDV3\cogs\CogManager\cogs\nsfw\nsfw.py", line 15, in <module> from .rule34 import Rule34 File "C:\Users\kimch\Desktop\REDV3\cogs\CogManager\cogs\nsfw\rule34.py", line 4, in <module> from .api_wrapper import APIWrapper File "C:\Users\kimch\Desktop\REDV3\cogs\CogManager\cogs\nsfw\api_wrapper.py", line 3, in <module> import xmltodict ModuleNotFoundError: No module named 'xmltodict' [2020-06-11 01:31:34] [ERROR] red: Package loading failed Traceback (most recent call last): File "c:\users\kimch\redenv\lib\site-packages\redbot\core\core_commands.py", line 117, in _load self._cleanup_and_refresh_modules(spec.name) File "c:\users\kimch\redenv\lib\site-packages\redbot\core\core_commands.py", line 177, in _cleanup_and_refresh_modules importlib._bootstrap._exec(lib.__spec__, lib) File "<frozen importlib._bootstrap>", line 604, in _exec File "<frozen importlib._bootstrap_external>", line 779, in exec_module File "<frozen importlib._bootstrap_external>", line 915, in get_code File "<frozen importlib._bootstrap_external>", line 972, in get_data FileNotFoundError: [Errno 2] No such file or directory: errors.py

image

converters: Add conversions of computer data units

It would be useful to be able to convert computer data units. Here are the ones that I would find useful:

bit
byte
kilobit
kilobyte
kibibyte
megabit
megabyte
mebibyte
gigabit
gigabyte
gibibyte
terabit
terabyte
petabit
petabyte

Nsfw rate limit

I saw that it has been fixed in martine bot so I'm assuming the same fix can be applied here?

[RandImages] some-random-api.ml is now some-random-api.com

When using commands that retrieve facts from some-random-api.ml such as [p]catfact or [p]dogfact or [p]pandafact or images for commands such as [p]panda and [p]pika, a JSON decode error occurs. This is because the domain is now some-random-api.com

image

converters: Kelvin to Celsius conversion is swapped with Fahrenheit

The Kelvin to Celcius conversion is returning the Fahrenheit result, and the Kelvin to Fahrenheit conversion is returning the Celsius result. Please swap them so they calculate the values for the correct output unit.

image

The inverse operations are correct (i.e. Kelvin to Celsius or Fahrenheit).

API

Any intrest in making an API cog for my bot site? I tried but with many trial and error i gave up. I am just starting out with Js so looking at py wasnt even beginning to make sense. Anyway. here is the ur. https://discordhouse.org

there is a few red bots listed already.

Rewrite all cogs of this repo

Most of my cogs (apart Grafana one) have been wrote a while ago, so there is a lot to improve, make less ugly, etc.
This will be done someday:tm:, and at the same time I'll do the other opened issues. (Apart the very first one :^))

Cannot load RandImages cog

`[2020-09-18 06:26:03] [ERROR] red: Package loading failed
Traceback (most recent call last):
File "c:\users\cameron\redenv\lib\site-packages\discord\ext\commands\cog.py", line 384, in _inject
bot.add_command(command)
File "c:\users\cameron\redenv\lib\site-packages\redbot\core\bot.py", line 1260, in add_command
super().add_command(command)
File "c:\users\cameron\redenv\lib\site-packages\discord\ext\commands\core.py", line 1131, in add_command
raise CommandRegistrationError(command.name)
discord.ext.commands.errors.CommandRegistrationError: The command meme is already an existing command or alias.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\cameron\redenv\lib\site-packages\redbot\core\core_commands.py", line 170, in load
await bot.load_extension(spec)
File "c:\users\cameron\redenv\lib\site-packages\redbot\core\bot.py", line 1104, in load_extension
await lib.setup(self)
File "C:\Users\Cameron\AppData\Local\Red-DiscordBot\Red-DiscordBot\data\danny\cogs\CogManager\cogs\randimages_init
.py", line 11, in setup
bot.add_cog(cog)
File "c:\users\cameron\redenv\lib\site-packages\redbot\core\bot.py", line 1239, in add_cog
super().add_cog(cog)
File "c:\users\cameron\redenv\lib\site-packages\discord\ext\commands\bot.py", line 508, in add_cog
cog = cog._inject(self)
File "c:\users\cameron\redenv\lib\site-packages\discord\ext\commands\cog.py", line 388, in _inject
bot.remove_command(to_undo)
File "c:\users\cameron\redenv\lib\site-packages\redbot\core\bot.py", line 1273, in remove_command
command = self.get_command(name)
File "c:\users\cameron\redenv\lib\site-packages\redbot\core\bot.py", line 270, in get_command
com = super().get_command(name)
File "c:\users\cameron\redenv\lib\site-packages\discord\ext\commands\core.py", line 1204, in get_command
if ' ' not in name:
TypeError: argument of type 'Command' is not iterable`

[Idea] FiveM server status updater

Basically a command with the FiveM cog that when you do this command, [p]fivem updater (channel) (server IP), it sends an embed to the specific channel and every 5 minutes it checks to see if the server is online and updates the player count. It could have endless possibilities and it would be a nice addition to the cog.

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.