fanbot | A bot to drive twitter and tweet positive things
kandi X-RAY | fanbot Summary
kandi X-RAY | fanbot Summary
fanbot is a Python library typically used in Telecommunications, Media, Advertising, Marketing applications. fanbot has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.
A twitter bot to compliment people and make them feel happy.
A twitter bot to compliment people and make them feel happy.
Support
Quality
Security
License
Reuse
Support
fanbot has a low active ecosystem.
It has 5 star(s) with 3 fork(s). There are 2 watchers for this library.
It had no major release in the last 6 months.
There are 1 open issues and 4 have been closed. There are no pull requests.
It has a neutral sentiment in the developer community.
The latest version of fanbot is current.
Quality
fanbot has no bugs reported.
Security
fanbot has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
License
fanbot is licensed under the MIT License. This license is Permissive.
Permissive licenses have the least restrictions, and you can use them in most projects.
Reuse
fanbot releases are not available. You will need to build from source code and install.
Build file is available. You can build the component from source.
Installation instructions, examples and code snippets are available.
Top functions reviewed by kandi - BETA
kandi has reviewed fanbot and discovered the below as its top functions. This is intended to give you an instant insight into fanbot implemented functionality, and help decide if they suit your requirements.
- Respond to the bot
- Returns a list of all the messages in the timeline
- Post a compliment
- Post a tweet
- Return a random compliment
- Sends Hello World
- Send a tweet
- Print the compliment
Get all kandi verified functions for this library.
fanbot Key Features
No Key Features are available at this moment for fanbot.
fanbot Examples and Code Snippets
No Code Snippets are available at this moment for fanbot.
Community Discussions
No Community Discussions are available at this moment for fanbot.Refer to stack overflow page for discussions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fanbot
Installation should go pretty quickly.
Clone this repository - git clone https://github.com/rpalo/fanbot.git && cd fanbot
(Optional) Create a virtual environment for the application - python3 -m venv .venv If you name it .venv, the .gitignore file will ignore it by default.
(Required only if you did step 2) Activate your virtual environment
Windows PowerShell: .venv/scripts/activate
*nix: source .venv/bin/activate
Install the required packages - pip3 install -r requirements.txt
Create your secrets file - mv fanbot/secrets.sample.py fanbot/secrets.py
Create a twitter account for your bot.
While logged in as this bot, create a twitter app for your bot.
From the "Keys and Access Tokens" tab of your new app, create a new key.
Take note of your Consumer Key, Consumer Secret, Access Token, and Access Token Secret.
Fill these values into your secrets.py file. Also fill in the username of the account you wish to be a fan of.
Fill out the main.py file with instructions of your own. Take note of Twitter's rate limiting policy. See the schedule module documentation for more info.
Run the tests to make sure everything's working right. In the main folder, simply type pytest. (As is evident, this uses Pytest. If you prefer nose or another testing tool, you might have to do some tweedling before you can test. Or maybe not. Not sure.)
Let 'er rip! python3 main.py
(Optional) Set up your bot as a service so it will run on a remote server and have output logs and you can leave it alone the "right way".
Included in the main folder is a file fanbot.service.
You'll need to edit this folder to include the absolute path to your python executable and your main.py file. You can also include any command-line arguments.
Once you've got your service file ready, copy it to /lib/systemd/system: sudo cp fanbot.service /lib/systemd/system/fanbot.service
It needs permissions of 644 to work: sudo chmod 644 /lib/sytemd/system/fanbot.service
Then referesh systemd to make sure it's managing your service: $ sudo systemctl daemon-reload $ sudo systemctl enable fanbot.service
Make sure everything works properly: $ sudo reboot ... $ sudo systemctl status fanbot.service # You should see something good like "active" with a few startup logs.
(Optional) To run the service from inside your virtual environment, simply point the python executable to the one in your .venv folder (i.e. /home/{{ you }}/fanbot/.venv/bin/python). The rest will work as expected.
Clone this repository - git clone https://github.com/rpalo/fanbot.git && cd fanbot
(Optional) Create a virtual environment for the application - python3 -m venv .venv If you name it .venv, the .gitignore file will ignore it by default.
(Required only if you did step 2) Activate your virtual environment
Windows PowerShell: .venv/scripts/activate
*nix: source .venv/bin/activate
Install the required packages - pip3 install -r requirements.txt
Create your secrets file - mv fanbot/secrets.sample.py fanbot/secrets.py
Create a twitter account for your bot.
While logged in as this bot, create a twitter app for your bot.
From the "Keys and Access Tokens" tab of your new app, create a new key.
Take note of your Consumer Key, Consumer Secret, Access Token, and Access Token Secret.
Fill these values into your secrets.py file. Also fill in the username of the account you wish to be a fan of.
Fill out the main.py file with instructions of your own. Take note of Twitter's rate limiting policy. See the schedule module documentation for more info.
Run the tests to make sure everything's working right. In the main folder, simply type pytest. (As is evident, this uses Pytest. If you prefer nose or another testing tool, you might have to do some tweedling before you can test. Or maybe not. Not sure.)
Let 'er rip! python3 main.py
(Optional) Set up your bot as a service so it will run on a remote server and have output logs and you can leave it alone the "right way".
Included in the main folder is a file fanbot.service.
You'll need to edit this folder to include the absolute path to your python executable and your main.py file. You can also include any command-line arguments.
Once you've got your service file ready, copy it to /lib/systemd/system: sudo cp fanbot.service /lib/systemd/system/fanbot.service
It needs permissions of 644 to work: sudo chmod 644 /lib/sytemd/system/fanbot.service
Then referesh systemd to make sure it's managing your service: $ sudo systemctl daemon-reload $ sudo systemctl enable fanbot.service
Make sure everything works properly: $ sudo reboot ... $ sudo systemctl status fanbot.service # You should see something good like "active" with a few startup logs.
(Optional) To run the service from inside your virtual environment, simply point the python executable to the one in your .venv folder (i.e. /home/{{ you }}/fanbot/.venv/bin/python). The rest will work as expected.
Support
I've never really had anybody contribute to any of my projects before, but I'm super open to it. I would almost say it might be a good idea to lay out a rough skeleton of your changes and open the pull request up front so we can talk about it before you do a bunch of work.
Find more information at:
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page