Skip to content
This repository was archived by the owner on Feb 3, 2022. It is now read-only.

Commit 7c8ba42

Browse files
committed
readme
1 parent 46cb644 commit 7c8ba42

File tree

1 file changed

+78
-1
lines changed

1 file changed

+78
-1
lines changed

readme.md

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,78 @@
1-
# TODO /
1+
# Goal
2+
3+
It's a twitter bot searching contest type `rt to #win`, `Retweet and win`, `Retweet for a chance to win` to win cool stuff ...
4+
5+
# Features
6+
7+
- Scan contest tweets
8+
- Retweet to participate contest
9+
- Follow guys if it's a mandatory action
10+
- Say thanks to guy (random strings) and add attach a gif to thanks reply
11+
12+
# Install
13+
14+
From scratch :
15+
```bash
16+
git clone [email protected]:cbastienbaron/twitter-bot-net.git \
17+
&& cd twitter-bot-net \
18+
&& composer install
19+
```
20+
21+
From composer (https://getcomposer.org/) :
22+
23+
```bash
24+
composer create-project cbastienbaron/twitter-bot-net
25+
```
26+
27+
From raspberry/docker (a Dockerfile is present in this repo for lazy guys :) (https://get.docker.com/):
28+
29+
```bash
30+
docker build -t cbastien/bot-farm .
31+
docker run -it -d -v $(pwd)/var/data/:/app/var/data --name bot-contest cbastien/bot-farm bin/console bot:contest
32+
```
33+
34+
# Configuration
35+
36+
```bash
37+
cat .env
38+
# This file is a "template" of which env vars need to be defined for your application
39+
# Copy this file to .env file for development, create environment variables when deploying to production
40+
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
41+
TWITTER_CONSUMER_KEY=******
42+
TWITTER_CONSUMER_SECRET=******
43+
TWITTER_TOKEN=******
44+
TWITTER_TOKEN_SECRET=******
45+
46+
GIPHY_API_KEY=SMAU6qz8l1aIxU980R5irqDMTh5hMqR5
47+
48+
###> symfony/swiftmailer-bundle ###
49+
# For Gmail as a transport, use: "gmail://username:password@localhost"
50+
# For a generic SMTP server, use: "smtp://localhost:25?encryption=&auth_mode="
51+
# Delivery is disabled by default via "null://localhost"
52+
MAILER_URL=null://localhost
53+
54+
55+
###< symfony/swiftmailer-bundle ###
56+
57+
###> symfony/framework-bundle ###
58+
APP_ENV=dev
59+
APP_SECRET=bee0463b64a5bc78bca052ed792902a1
60+
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
61+
#TRUSTED_HOSTS=localhost,example.com
62+
###< symfony/framework-bundle ###
63+
64+
```
65+
66+
Create a twitter app account : https://developer.twitter.com/apps/ and fill `.env` vars
67+
var `GIPHY_API_KEY` it let as is for testing purpose
68+
69+
70+
# Run
71+
72+
```bash
73+
bin/console bot:contest
74+
```
75+
76+
# Play nicely
77+
78+

0 commit comments

Comments
 (0)