Giter Club home page Giter Club logo

birthdaybot's Introduction

๐ŸŽ‚๐Ÿ’ฌ BirthdayBOT

(Messenger Auto Send Birthday Wishes)

This BOT will allow you to Send Automatic Birthday Wishes For Your Facebook Friends Every Single Day

Requirements :

  • VPS (OR your local machine)
  • Python (version 3.5.0 or higher)
  • Facebook Account (for sure ๐Ÿ˜œ)
  • LAMP server (or anything similar)

  1. First, you need to download these files..

  2. Login to your facebook account, then open This link

alt text

  1. Right-click the link Birthdays , Copy The Adress.. You will get a link like this
webcal://web.facebook.com/ical/b.php?uid=100001217614623&key=XXXXXXXXXXXXXXXX

Replace the webcal:// with https:// like this :

https://web.facebook.com/ical/b.php?uid=100001217614623&key=XXXXXXXXXXXXXXXX
  1. You will get a file with .ics extension :

( iCalendar file: These are plain text files that include calendar event details like a description, beginning and ending times, location, etc. )

  1. Make a new folder and put all files (ics file you download it from fb + github files) Together in the same folder

  2. Rename the .ics file you download it from facebook as : cal.ics ( you must delete the old cal.ics file of course ๐Ÿ˜… )

Configuration :

Customize your Wishes (modify config . py) :
wish = ['Hi {0}, Happy Birthday ^^']		

{0} is your friend facebook Name ... for example :

if your friend's name is "Adem", the message will be : Hi Adem, Happy Birthday ^^

You Can also make random wishes ; Example :

wish = ['Hi {0}, Happy Birthday ^^' , 
		'Love You {0}' ,
        'How are you {0}]',
        'Bla Bla Bla {0}']		

The bot will select a random wish for every friend ;)


Customize Images (modify config . py) :
  • Example 1 :
images = ['https://i.imgur.com/oDEGLBY.jpg']
  • Example 2 (Random Image) :
images = ['https://i.imgur.com/oDEGLBY.jpg',
		  'https://i.imgur.com/7qffkxy.png',
          'https://i.imgur.com/5KOX5Vo.png',]

Login & Password (modify config . py):

You need to use your facebook username & password :

username = '[email protected]'
password = 'yourpassword'

Schedule Time (modify bot . py):

You can change the time when your bot will send messages :

schedule.every().day.at("12:33").do(BirthdayWish)

In this exemple the bot will send wishes at 12:33 change it as you like :D

โš ๏ธ โš ๏ธ โš ๏ธ Warning : The bot will your VPS server date and time ...



After Configuration, you need to put the folder in your LAMP (the default directory var/www/) in your VPS

  1. Open your browser and open this URL :
http://{{server-ip-adress}}/birthdaybot/

it will says "Everything is OK" ...

  1. Then,you must use screen :

Screen allows you to:

  • Use multiple shell windows from a single SSH session.
  • Keep a shell active even through network disruptions.
  • Disconnect and re-connect to a shell sessions from multiple locations.
  • Run a long running process without maintaining an active shell session.
cd var/www/birthdaybot
screen -S birthdaybot
  1. you need to install python requirements using pip :
pip install -r requirements.txt

Finally, Start Your Bot :D

python bot.py

Don't forget to detach from your session :

Press [Ctrl+a] then [Ctrl+d]

birthdaybot's People

Contributors

ademking avatar

Watchers

James Cloos avatar Fern.N avatar

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.