Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chirag-droid/analyzeuser
A reddit bot that sends a user's stats based on his/her last 1000's comments and posts.
https://github.com/chirag-droid/analyzeuser
nodejs reddit reddit-api reddit-bot typescript
Last synced: about 2 months ago
JSON representation
A reddit bot that sends a user's stats based on his/her last 1000's comments and posts.
- Host: GitHub
- URL: https://github.com/chirag-droid/analyzeuser
- Owner: chirag-droid
- Created: 2022-04-18T22:01:05.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-23T12:08:12.000Z (over 2 years ago)
- Last Synced: 2024-04-18T02:12:50.928Z (9 months ago)
- Topics: nodejs, reddit, reddit-api, reddit-bot, typescript
- Language: TypeScript
- Homepage: https://reddit.com/user/AnalyzeUser
- Size: 50.8 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Analyze Bot
A reddit bot that sends a user's stats based on his/her last 1000's comments and posts.
## Environment Variables
To run this project, you will need to add the following environment variables to your .env file. Create a new reddit account. Go to [reddit developer portal](https://reddit.com/prefs/app). Create a new app with type script and fill in the variables below.
`CLIENT_ID`: The reddit client id
`CLIENT_SECRET`: The reddit cliend secret
`REDDIT_USER`: The reddit username of the bot you just created
`REDDIT_PASS`: The reddit password of the account you created
`OWNER`: The account of the person who owns the bot
`PREFIX`: The bot prefix defaults to !## Run Locally
## Run locally
Clone the project
```bash
git clone https://github.com/chirag-droid/AnalyzeBot
```Go to the project directory
```bash
cd AnalyzeBot
```Install dependencies
```bash
yarn install
```Start the bot
```bash
yarn start
```## Deploy online
[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/new/template/rtsip8?referralCode=km83_N)
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)