0
class wppbot:
dir_path = os.getcwd()
bot.def __init__(self, nome_bot):
self.bot = ChatBot(nome_bot)
self.bot.set_trainer(ListTrainer)
self.chrome = self.dir_path+'\chromedriver.exe'
self.options = webdriver.ChromeOptions()
self.options.add_argument(r"user-data-dir="+self.dir_path+"\profile\wpp")
self.driver = webdriver.Chrome(self.chrome, chrome_options=self.options)
I’m having an error in this part of the code, it says there is a syntax error in bot.def. I’m learning now, so any help is welcome.
What would that be "
bot.
" beforedef
in the third row?– Woss
Ah, I think I get it. The mistake is because there is nothing in the bot? I got this part already like this.
– Kamuri
No, because the Python syntax is wrong: https://docs.python.org/3.7/tutorial/classes.html
– Woss