Skip to content

ChrisW-B/MagicGifs

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Twitter Magic Gifs Bot

Just a simple Tweepy based bot that replies to people it follows with relevant gifs from Giphy

"Inspired" by boredom and the old @MagicPixx bot

This project uses poetry, so it should be as simple as running poetry install

After you've installed the deps, download the most recent corpora by running

poetry run python -m textblob.download_corpora

After that, its as simple as setting up a config.py file like so, where badwords are words the bot will not search for

consumer_key = "XXXXXXXX"
consumer_secret = "XXXXXXXX"
access_token = "XXXXXXXX-XXXXXXXX"
access_token_secret = "XXXXXXXX"
badwords = [
    'XXX',
    'XXXXX']

and then running python magicgif.py

Things I might try to add

  • Improving NLP to search for key phrases instead of just nouns/verbs

About

A simple giphy bot for twitter, basically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages