https://discord.com/api/users/@me/guilds
client = discord.Client()
# ...
client.run(token, bot=False)
py
не определена.message.channel
является объектом класса discord.channel.TextChannel
. Нельзя его сравнить с числом, такое сравнение всегда выдаст неравенство в ответе, что в данном случае является True
, так что функция всегда будет прекращать своё выполнение на этом блоке if
.if message.channel.id != 903198062963490827:
async function sendData() {
let chislo1 = parseInt(document.querySelector('#chislo1').value);
let chislo2 = parseInt(document.querySelector('#chislo2').value);
if (!isNaN(chislo1) && !isNaN(chislo2)) {
await eel.rek_data(chislo1, chislo2);
} else { console.log('not int'); }
}
get_attribute('textContent')
self.shops = self.driver.execute_script('return shopsObj')
for shop in self.shops:
print(shop['address'], shop['availability_hint'])
self.shops = self.driver.find_elements(By.XPATH, '//div[@class="b-shops-map__shop _other"]')
self.shops = self.driver.find_elements(By.XPATH, '//div[@class="b-shops-map__shop _other"]')
for shop in self.shops:
print(shop.find_element_by_class_name('b-shops-map__address-text').text)
print(shop.find_element_by_class_name('b-shops-map__availability-col-wrapper').find_element_by_class_name('b-tooltip-new__text.s-tooltip-text').get_attribute('textContent').strip())
print()
edit_caption
bot.delete_webhook()
перед созданием нового хука.