Questions tagged [bots]

Bots, also known as web-robots, are software applications that run automated tasks over the Internet. Typically, they perform tasks that are both simple and structurally repetitive, at a much higher rate than would be possible for a human alone. Notable examples are spiders, crawlers, scrapers, spam-bots and game-bots.

Bots are made to automate human surfing activity to get commercial advantage. Currently there are three main fields of application for them:

  • Searching: crawling the web, gathering hyperlink structure, parsing and/or storing content found
  • Advertisement: post advertisements on resources which technically allow it - blogs, forums, social networks
  • Games / Gambling / Trading: "gold farming", "e-bay snipers", "auto-bid", etc.

Even though the first category is almost a mainstream, all bots are negatively perceived by society in general. Site owners actively refuse to let unknown bots to use their sites, by all technical and legal means. CAPTCHA is the most famous artifact of this "war".

Bots can be written in any language that allows network interaction, but most often in PHP, Perl or Python. Modern bots are often based on web-testing frameworks, like Selenium or Watir, giving them ability to fully simulate human behavior and work with AJAX sites.

Notice: Bots should not be confused with "zombie-pc", individual units of botnet.

10368 questions
1
vote
1 answer

(node:2713) ExperimentalWarning: stream/web is an experimental feature. This feature could change at any time in @discordjs/rest

I'm using @discord.js/rest for slash command handling by discord.js v13.6.0 BOT on node.js v16.10.0 Path: node_modules/undici/lib/fetch/response.js ERROR at Console: (node:2713) ExperimentalWarning: stream/web is an experimental feature. This…
ELEWARD
  • 28
  • 1
  • 4
1
vote
1 answer

Using python selenium to export facebook posts - can't separete by post

Due to a research, I am trying to scrape posts from a Facebook group. I am trying to get name, date and post content. So, I am first trying the following code, but it looks like that it is not capturing data post by post, it returns all the names…
1
vote
1 answer

AttributeError: 'WebElement' object has no attribute 'username' at selenium?

im trying to learn "Selenium" but i have a mistake in my codes but i cant find it. I imported some variable other file like that " from githubuser import username,password ". im trying to auto github signer but i cant :( can u help me ? ` from…
ofowardar
  • 15
  • 4
1
vote
1 answer

TypeError: 'NoneType' object is not subscriptable, Discord Python Bot Mysql

Raw code: @ loop(hours=12) async def ticket_clear(): # try: cur.execute("SELECT auth_id, chann_id from tickets") for (auth_id, chann_id) in cur: channel = client.get_channel(chann_id) if (channel): return …
Zaiga
  • 21
  • 5
1
vote
0 answers

Custom Emoji in discord embed

I have a discord bot in JAVA, where embeds and custom emojis from another server are often used. When the embed pops up for the first time, all custom emojis are visible, but as soon as I "update" the embed using the button under it, all the emojis…
P0koy
  • 11
  • 2
1
vote
1 answer

How do I create slash commands in discord.py?

I have a discord bot and it can respond to messages. But how do I make it have slash commands? I want to make a simple slash command that says something. How do I do that? Here is my code: main.py: import bot if __name__ == '__main__': …
1
vote
0 answers

How to change state for the users with the user_id (with that error)

I found this code: state = dp.current_state(chat=chat_id, user=user_id) await state.set_state(User.accepted) But when I run it, I have that error: TypeError: Dispatcher.current_state() takes 1 positional argument but 2 were given It should work…
overl4mer
  • 11
  • 1
1
vote
0 answers

Mineflayer bot for Python, logging out of the server using a third-party file

I am writing a mineflayer bot via Python: mineflayer = require('mineflayer') bot_minecraft = mineflayer.createBot({ 'host': host, 'username': username, 'version': False }) @On(bot_minecraft, 'login') …
PyChel
  • 11
  • 1
1
vote
0 answers

Have hyperlinks instead of Buttons in Bot Framework

Rather than having the buttons, is there a way to use hyperlinks in bot framework. When the user clicks on the hyperlink, the message should be posted back to the bot. Most of the cards provide buttons to have this functionality.
snath
  • 21
  • 1
1
vote
0 answers

how can i develop a discord sorter bot?

i wanted to create a discord bot that automatically sorts the numbers that a webhook sends and put them in a specific channel. I will be honest, i dont know how to start tho... what should i do? i have searched some bots online and axtually tried to…
1
vote
1 answer

How to check permissions for each user in connected to a voice channel

I am trying to make a voice command in which you can claim a channel if there is no user who has the Manage Channels permission in the channel connected. But how can I query that? This is my current code: if (interaction.options.getSubcommand() ===…
1
vote
0 answers

String with accent (´`~^) output with error

I'm making a bot where the user selects a .txt file, and the bot reads the file, but when he sends the string to a notepad for example, the characters with accents come out with an error. Exemple: "São Paulo" in the file come out "SÃ@o Paulo". I'm…
1
vote
1 answer

discord.py ticket commandd

I have a ticket command it works but I'm trying to have it create a ticket channel in a specific category @bot.command() async def support(ctx, *, reason = None): guild = ctx.guild user = ctx.author await ctx.message.delete() # Deletes…
1
vote
0 answers

My Bot Framework Composer bot stops answering in Teams after publishing new version to Azure

I am currently developing a chatbot in Bot Framework Composer for Teams. When I publish a new version from Composer to Azure, my bot suddenly stops answering. However, if I delete the chat with the bot in teams and open it again (using the "Open in…
1
vote
0 answers

Some functions if the Telegram Bot WebApp is not working

thanks for your attention. This is a simple webpage for a web-app bot. Bot Web…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/api" class="post-tag grid--cell" title="show questions tagged 'api'" rel="tag">api</a> <a href="../../questions/tagged/web-applications" class="post-tag grid--cell" title="show questions tagged 'web-applications'" rel="tag">web-applications</a> <a href="../../questions/tagged/bots" class="post-tag grid--cell" title="show questions tagged 'bots'" rel="tag">bots</a> <a href="../../questions/tagged/telegram" class="post-tag grid--cell" title="show questions tagged 'telegram'" rel="tag">telegram</a> <a href="../../questions/tagged/qr-code" class="post-tag grid--cell" title="show questions tagged 'qr-code'" rel="tag">qr-code</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 11 '23 at 23:23">asked Feb 11 '23 at 23:23</time> <a href="../../users/20347474/s-m-mehebub-ul-haque-mukut" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/20347474.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="S M Mehebub Ul Haque Mukut" /> </a> <div class="s-user-card--info"> <a href="../../users/20347474/s-m-mehebub-ul-haque-mukut" class="s-user-card--link">S M Mehebub Ul Haque Mukut</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">11</li> <li class="s-award-bling s-award-bling__bronze" title="1 bronze badges">1</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/bots_page=99" rel="prev" title="Go to page 99">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/bots_page=1" rel="" title="Go to page 1">1</a> <a class="s-pagination--item" href="../../questions/tagged/bots_page=2" rel="" title="Go to page 2">2</a> <a class="s-pagination--item" href="../../questions/tagged/bots_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/bots_page=99" rel="" title="Go to page 99">99</a> <div class="s-pagination--item is-selected">100</div> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>