antiblock
diamwall
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
  • 0
Sign in to follow this  
luizgmencucini

Erro Bot Rodar Itens

Question

Erro ao Inserir o bot de rodar itens no client

obs:está apenas com TAB

 

Syserr:

Spoiler

0107 18:57:35643 ::   File "system.py", line 130, in __pack_import

0107 18:57:35643 ::   File "
0107 18:57:35643 :: <string>
0107 18:57:35643 :: ", line 
0107 18:57:35643 :: 2067
0107 18:57:35643 :: 

0107 18:57:35643 ::     
0107 18:57:35643 :: self.switchbot.Show()
0107 18:57:35643 :: 

0107 18:57:35643 ::     
0107 18:57:35643 ::  
0107 18:57:35643 ::  
0107 18:57:35643 ::  
0107 18:57:35643 ::  
0107 18:57:35643 ::  
0107 18:57:35643 ::  
0107 18:57:35643 ::  
0107 18:57:35643 ::  
0107 18:57:35643 ::  
0107 18:57:35643 ::  
0107 18:57:35643 ::  
0107 18:57:35644 ::  
0107 18:57:35644 ::  
0107 18:57:35644 ::  
0107 18:57:35644 ::  
0107 18:57:35644 ::  
0107 18:57:35644 ::  
0107 18:57:35644 ::  
0107 18:57:35644 ::  
0107 18:57:35644 :: ^

0107 18:57:35644 :: SyntaxError
0107 18:57:35644 :: : 
0107 18:57:35644 :: invalid syntax
0107 18:57:35644 :: 

 

 

Código:

Spoiler


    def __toggleSwitchbot(self):
        import SwitchBot
        if self.switchbot.bot_shown == 1:
            self.switchbot.Hide()
        else:
            self.switchbot.Show()

 

Alguém sabe pq esta dando errado?

Share this post


Link to post
Share on other sites

3 answers to this question

antiblock
Elveron
  • 0

Não sei se é disso, mas tenta meter desta maneira

 

def __toggleSwitchbot(self):
if self.switchbot.bot_shown == 1:
self.switchbot.Hide()
else:
self.switchbot.Show()

 

Edited by мστσкσ (see edit history)

Share this post


Link to post
Share on other sites
  • 0
Em 08/01/2018 at 13:01, Devil_FAN disse:

Não sei se é disso, mas tenta meter desta maneira

 


def __toggleSwitchbot(self):
if self.switchbot.bot_shown == 1:
self.switchbot.Hide()
else:
self.switchbot.Show()

 

Deu não

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this