Giter VIP home page Giter VIP logo

whabotscript's Introduction

whatsappBotScript

A simple whatsapp bot realised in AutoHotkey scripting language

I received a request to make a whatsapp bot that would follow all the Whatsapp requirement and that wouldn't be banned. The main objective were:

  1. Add new contacts to a CSV and CVF file that are later imported to a phone
  2. While importing a new number send a welcome message

Other functions were added when they were needed. This is a BEGINNER friendly repository as I am using it to learn GIT. Any contribution is welcome.

alt text

If you want to try the program out please download the repository and paste it somewhere. Try to keep the folder structure the same or the program may not work as intended.

whabotscript's People

Contributors

baskovicp avatar

Stargazers

Nirmal avatar Roman avatar Augusto Vera y Aguilar avatar Gunnar avatar Matias Moreno avatar Alexandre avatar Ixiko avatar

Watchers

Augusto Vera y Aguilar avatar  avatar Ixiko avatar

Forkers

hummans pvillamil

whabotscript's Issues

Merge these two functions

SendMessageFromFile(path)
{
FileRead, Clipboard, %path%
Click, 538, 702 Left, 1
Sleep, 10
Sleep, 300
Send, {Control Down}
Sleep, 10
Send, {v Down}
Sleep, 50
Send, {v Up}
Sleep, 50
Send, {Control Up}
Sleep, 50
Sleep, 400
Send, {Enter}
}
SendMessage(message)
{
Click, 538, 702 Left, 1
Sleep, 10
Clipboard = %message%
Sleep, 300
Send, {Control Down}
Sleep, 10
Send, {v Down}
Sleep, 50
Send, {v Up}
Sleep, 50
Send, {Control Up}
Sleep, 50
Sleep, 400
Send, {Enter}
}

The main objective is to merge those two functions because when you duplicate code little puppies die. :(

Make a new algorithm for understanding when we are in a group chat

else
{
if(EraseTries==0)
previousTelNumber = %currentTelNumber%
Sleep 3000
DeleteContact() ;try to deleate
Click, 791, 239 Left, 1 ;WARNING - what if a user sends a picture then clicking in the middle of the screen is a problem
Sleep, 400
EraseTries++
if(EraseTries >= 3) ; if the program tries to erase a kontakt message and it fails after 3 tries make sure we are not in a group
{
ExitFromWhatsappGroup()
}
}

So if you have an idea how to check if we are in a group chat that would be awesome. The best solution is the one where you don't depend on the language.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.