RedCokeDevelopment / Teapot.py

A multi-purpose discord.py python discord bot
https://teapot.bot
MIT License
186 stars 33 forks source link

Update Teapot.py #62

Closed faluhub closed 2 years ago

faluhub commented 2 years ago

Made everything a tad better (haven't tested if it works yet, please respond here with the error if it does not.)

RedTeaDev commented 2 years ago

Error at line 86, it should be ==

./Teapot.py:86:31: E999 SyntaxError: invalid syntax
                    if file === "cmds.py": continue
                              ^
     E999 SyntaxError: invalid syntax
faluhub commented 2 years ago

Saw the new issue, fixing rn

faluhub commented 2 years ago

lmao why do I forget so much

faluhub commented 2 years ago

there we go

RedTeaDev commented 2 years ago

I will try to run it later when i get back to home

faluhub commented 2 years ago

I will try to run it later when i get back to home

alright

RedTeaDev commented 2 years ago

Hello, seem like there is an error when running the bot

➜ py .\Teapot.py

  _____                      _
 |_   _|__  __ _ _ __   ___ | |_
   | |/ _ \/ _` | '_ \ / _ \| __|
   | |  __/ (_| | |_) | (_) | |_
   |_|\___|\__,_| .__/ \___/ \__|
    by ColaIan |_| & RedTea

Running Teapot.py v0.0.1.7

You are currently using an unlisted version!

Initializing bot...
Traceback (most recent call last):
  File ".\Teapot.py", line 111, in <module>
    TeapotBot().run(teapot.config.bot_token())
  File ".\Teapot.py", line 70, in __init__
    self.intents = discord.Intents.default()
AttributeError: can't set attribute
sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

ColaIan commented 2 years ago

Please properly test your code on your local machine before creating a pull request. Also, only enable the gateway intents that the bot is going to use, do not randomly enable unused gateway intents, and definitely not attempt to enable all of them.

faluhub commented 2 years ago

Please properly test your code on your local machine before creating a pull request. Also, only enable the gateway intents that the bot is going to use, do not randomly enable unused gateway intents, and definitely not attempt to enable all of them.

the previous patch literally worked on the workflow console..........

ColaIan commented 2 years ago

Please properly test your code on your local machine before creating a pull request. Also, only enable the gateway intents that the bot is going to use, do not randomly enable unused gateway intents, and definitely not attempt to enable all of them.

the previous patch literally worked on the workflow console..........

Python is a non-statically typed scripting language, not a compiled language like Java. You will not know about logic and type errors until you run the code by yourself. The workflow only runs the unit tests and ensures that there are no syntax errors. I say again, please test it properly on your local machine first.

RedTeaDev commented 2 years ago

the previous patch literally worked on the workflow console..........

Currently github action only check for Syntex error and dependency, there will be unit testing in future

ColaIan commented 2 years ago

This pull request was denied for one or more of the following reasons:

Please reopen another pull request if you are fully ready to contribute to Teapot.py. Thank you!