Git Product home page Git Product logo

slotbot's Introduction

Hi There! My name is Riza.

class Riza:
    def __init__(self):
        self.name = "Riza"
        self.age = 14
        self.interests = ["coding", "gaming", "learning", "football"]
        self.skills = ["Python", "JavaScript", "C++", "C#"]

    def __str__(self):
        return f"๐Ÿ‘‹ Hey, I'm {self.name}!\n\n I'm {self.age} years old and passionate about {', '.join(self.interests)}.\n\n๐Ÿ’ป My skills include {', '.join(self.skills)}.\n\nLet's connect and build something amazing together!"

riza = Riza()

print(riza)

I've been interested in coding since the age of 10 years old. I started off with block-based Scratch code and grew to learn line languages such as Python and Java. At 12, I used my Java knowledge to experiment with Minecraft plugins and started to create my own web design using languages such as HTML, CSS, and JavaScript. At around 13, I started to try creating my own games in Unity, where I dipped my toes into C#. When I was 14, I delved into projects involving hardware and libraries such as TensorFlow, Raspberry Pi, NumPy, Ultralytics, Flask, Pandas, SQL, SDL2, Jetson Nano, and Keras. Currently, I am playing around with bot development & web design, including projects involving OpenCV. I have tried tools such as Node.js and React, however, I am still learning!


Currently Working On

  • OpenCV Projects: Currently working on projects related to OpenCV.
  • AI/Machine Learning: Self-teaching and experimenting.
  • LeetCode: Grinding LeetCode for fun and practice.

Tech Stack

Web Dev

Other Langs

Game Development

AI

Tools

slotbot's People

Contributors

codewithriza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

slotbot's Issues

commands not working

Ignoring exception in command help:
Traceback (most recent call last):
File "/home/container/.local/lib/python3.11/site-packages/discord/ext/commands/core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/main.py", line 84, in help
await ctx.send(embed=embed,delete_after=30)
File "/home/container/.local/lib/python3.11/site-packages/discord/abc.py", line 1065, in send
data = await state.http.send_message(channel.id, content, tts=tts, embed=embed,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/discord/http.py", line 254, in request
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.thumbnail.url: Not a well formed URL.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/container/.local/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "/home/container/.local/lib/python3.11/site-packages/discord/ext/commands/core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/home/container/.local/lib/python3.11/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: HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.thumbnail.url: Not a well formed URL.

not getting online

Pylex~ Server marked as starting...
[Pterodactyl Daemon]: Pulling Docker container image, this could take a few minutes to complete...
[Pterodactyl Daemon]: Finished pulling Docker container image
Python 3.11.9
:/home/container$ if [[ -d .git ]] && [[ "${AUTO_UPDATE}" == "1" ]]; then git pull; fi; if [[ ! -z "${PY_PACKAGES}" ]]; then pip install -U --prefix .local ${PY_PACKAGES}; fi; if [[ -f /home/container/${REQUIREMENTS_FILE} ]]; then pip install -U --prefix .local -r ${REQUIREMENTS_FILE}; fi; /usr/local/bin/python /home/container/${PY_FILE}
Requirement already satisfied: discord.py==1.7.3 in ./.local/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (1.7.3)
Requirement already satisfied: colorama==0.4.4 in ./.local/lib/python3.11/site-packages (from -r requirements.txt (line 2)) (0.4.4)
Requirement already satisfied: aiohttp<3.8.0,>=3.6.0 in ./.local/lib/python3.11/site-packages (from discord.py==1.7.3->-r requirements.txt (line 1)) (3.7.4.post0)
Requirement already satisfied: attrs>=17.3.0 in ./.local/lib/python3.11/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py==1.7.3->-r requirements.txt (line 1)) (23.2.0)
Requirement already satisfied: chardet<5.0,>=2.0 in ./.local/lib/python3.11/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py==1.7.3->-r requirements.txt (line 1)) (4.0.0)
Requirement already satisfied: multidict<7.0,>=4.5 in ./.local/lib/python3.11/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py==1.7.3->-r requirements.txt (line 1)) (6.0.5)
Requirement already satisfied: async-timeout<4.0,>=3.0 in ./.local/lib/python3.11/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py==1.7.3->-r requirements.txt (line 1)) (3.0.1)
Requirement already satisfied: yarl<2.0,>=1.0 in ./.local/lib/python3.11/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py==1.7.3->-r requirements.txt (line 1)) (1.9.4)
Requirement already satisfied: typing-extensions>=3.6.5 in ./.local/lib/python3.11/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py==1.7.3->-r requirements.txt (line 1)) (4.12.2)
Requirement already satisfied: idna>=2.0 in ./.local/lib/python3.11/site-packages (from yarl<2.0,>=1.0->aiohttp<3.8.0,>=3.6.0->discord.py==1.7.3->-r requirements.txt (line 1)) (3.7)
[notice] A new release of pip is available: 24.0 -> 24.1.2
[notice] To update, run: pip install --upgrade pip
1241326253978423326
Traceback (most recent call last):
File "/home/container/main.py", line 450, in
bot.run("MTI2MzQ4MDk4MDE1MzU2NTE5NQ.GiCj8P.ITCVIvGpbhQMW-T_3t4W0zCTgyKzgId6EvUT2Y")
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 723, in run
return future.result()
^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 702, in runner
await self.start(*args, **kwargs)
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 666, in start
await self.connect(reconnect=reconnect)
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 601, in connect
raise PrivilegedIntentsRequired(exc.shard_id) from None
discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.
Pylex~ Server marked as offline...
[Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ----------
[Pterodactyl Daemon]: Exit code: 1
[Pterodactyl Daemon]: Out of memory: false
[Pterodactyl Daemon]: Checking server disk space usage, this could take a few seconds...
[Pterodactyl Daemon]: Updating process configuration files...
[Pterodactyl Daemon]: Ensuring file permissions are set correctly, this could take a few seconds...
Pylex~ Server marked as starting...
[Pterodactyl Daemon]: Pulling Docker container image, this could take a few minutes to complete...
[Pterodactyl Daemon]: Finished pulling Docker container image
Python 3.11.9
:/home/container$ if [[ -d .git ]] && [[ "${AUTO_UPDATE}" == "1" ]]; then git pull; fi; if [[ ! -z "${PY_PACKAGES}" ]]; then pip install -U --prefix .local ${PY_PACKAGES}; fi; if [[ -f /home/container/${REQUIREMENTS_FILE} ]]; then pip install -U --prefix .local -r ${REQUIREMENTS_FILE}; fi; /usr/local/bin/python /home/container/${PY_FILE}
Requirement already satisfied: discord.py==1.7.3 in ./.local/lib/python3.11/site-packages (from -r requirements.txt (line 1)) (1.7.3)
Requirement already satisfied: colorama==0.4.4 in ./.local/lib/python3.11/site-packages (from -r requirements.txt (line 2)) (0.4.4)
Requirement already satisfied: aiohttp<3.8.0,>=3.6.0 in ./.local/lib/python3.11/site-packages (from discord.py==1.7.3->-r requirements.txt (line 1)) (3.7.4.post0)
Requirement already satisfied: attrs>=17.3.0 in ./.local/lib/python3.11/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py==1.7.3->-r requirements.txt (line 1)) (23.2.0)
Requirement already satisfied: chardet<5.0,>=2.0 in ./.local/lib/python3.11/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py==1.7.3->-r requirements.txt (line 1)) (4.0.0)
Requirement already satisfied: multidict<7.0,>=4.5 in ./.local/lib/python3.11/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py==1.7.3->-r requirements.txt (line 1)) (6.0.5)
Requirement already satisfied: async-timeout<4.0,>=3.0 in ./.local/lib/python3.11/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py==1.7.3->-r requirements.txt (line 1)) (3.0.1)
Requirement already satisfied: yarl<2.0,>=1.0 in ./.local/lib/python3.11/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py==1.7.3->-r requirements.txt (line 1)) (1.9.4)
Requirement already satisfied: typing-extensions>=3.6.5 in ./.local/lib/python3.11/site-packages (from aiohttp<3.8.0,>=3.6.0->discord.py==1.7.3->-r requirements.txt (line 1)) (4.12.2)
Requirement already satisfied: idna>=2.0 in ./.local/lib/python3.11/site-packages (from yarl<2.0,>=1.0->aiohttp<3.8.0,>=3.6.0->discord.py==1.7.3->-r requirements.txt (line 1)) (3.7)
[notice] A new release of pip is available: 24.0 -> 24.1.2
[notice] To update, run: pip install --upgrade pip
1241326253978423326
Traceback (most recent call last):
File "/home/container/main.py", line 450, in
bot.run("MTI2MzQ4MDk4MDE1MzU2NTE5NQ.GiCj8P.ITCVIvGpbhQMW-T_3t4W0zCTgyKzgId6EvUT2Y")
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 723, in run
return future.result()
^^^^^^^^^^^^^^^
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 702, in runner
await self.start(*args, **kwargs)
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 666, in start
await self.connect(reconnect=reconnect)
File "/home/container/.local/lib/python3.11/site-packages/discord/client.py", line 601, in connect
raise PrivilegedIntentsRequired(exc.shard_id) from None
discord.errors.PrivilegedIntentsRequired: Shard ID None is requesting privileged intents that have not been explicitly enabled in the developer portal. It is recommended to go to https://discord.com/developers/applications/ and explicitly enable the privileged intents within your application's page. If this is not possible, then consider disabling the privileged intents instead.
Pylex~ Server marked as offline...
[Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ----------
[Pterodactyl Daemon]: Exit code: 1
[Pterodactyl Daemon]: Out of memory: false
[Pterodactyl Daemon]: Aborting automatic restart, last crash occurred less than 60 seconds ago.

ERROR

ERROR :

Bot is ready!
2024-07-08 20:20:25 ERROR    discord.client Ignoring exception in on_ready
Traceback (most recent call last):
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/discord/client.py", line 449, in _run_event
    await coro(*args, **kwargs)
  File "/storage/emulated/0/SlotBot-main/main.py", line 39, in on_ready
    bot.add_view(CreateButton())
                 ^^^^^^^^^^^^
NameError: name 'CreateButton' is not defined
2024-07-08 20:21:10 ERROR    discord.ext.commands.bot Ignoring exception in command create
Traceback (most recent call last):
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/discord/ext/commands/bot.py", line 1366, in invoke
    await ctx.command.invoke(ctx)
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1021, in invoke
    await self.prepare(ctx)
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/discord/ext/commands/core.py", line 925, in prepare
    if not await self.can_run(ctx):
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1288, in can_run
    return await discord.utils.async_all(predicate(ctx) for predicate in predicates)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/discord/utils.py", line 704, in async_all
    for elem in gen:
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/discord/ext/commands/core.py", line 1288, in <genexpr>
    return await discord.utils.async_all(predicate(ctx) for predicate in predicates)
                                         ^^^^^^^^^^^^^^
  File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/discord/ext/commands/core.py", line 2051, in predicate
    raise MissingRole(item)
discord.ext.commands.errors.MissingRole: Role 1257360468994035823 is required to run this command.

Any help?

bad url

i get this error when trying to run help command

`Ignoring exception in command help:
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\ext\commands\core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\Desktop\SlotBot-main\main.py", line 83, in help
await ctx.send(embed=embed,delete_after=30)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\abc.py", line 1065, in send
data = await state.http.send_message(channel.id, content, tts=tts, embed=embed,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\http.py", line 254, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.thumbnail.url: Not a well formed URL.

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

Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\ext\commands\bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\discord\ext\commands\core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\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: HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.thumbnail.url: Not a well formed 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.