____ ** ** * * * *___ ___ _____
/ ___| | \/ | / \ | | | | | __ ) / * \* _|
\___ \ | |\/| | / * \ | | | | | * \| | | || |
___) | | | | |/ ___ \| |___| |___| |_) | |_| || |
|____/ |_| |_/_/ \_\_____|_____|____/ \___/ |_|
WeChat Job Bot is an automated tool designed to share the latest internship and new graduate job opportunities in WeChat groups. The bot periodically fetches the latest job openings from specified sources and sends them to configured WeChat groups.
The project is configured using the jobWxBotConfig
section in package.json
. Here are the main configuration items:
"jobWxBotConfig": {
"maxDays": 2,
"jobsPerMessage": 3,
"minsCheckInterval": 5,
"rooms": [
"TestBot"
],
"googleSheet": false
}
maxDays
: Number of recent days to fetch job postings for (default: 2 days)jobsPerMessage
: Maximum number of jobs to include in each message (default: 3)minsCheckInterval
: Time interval for checking new jobs, in minutes (default: 5 minutes)rooms
: List of WeChat group names to send job information togoogleSheet
: Enable or disable the Google Sheets plugin (default: false)Clone the repository:
git clone https://github.com/your-username/wechat-job-bot.git
Navigate to the project directory:
cd wechat-job-bot
Install dependencies:
yarn
Configure jobWxBotConfig
in package.json
according to your needs.
Start the bot:
yarn start
Scan the displayed QR code to log into WeChat.
The bot will automatically start sharing job information in the configured groups.
@BOT intern
: Get new intern job postings@BOT ng
: Get new graduate job postings@BOT help
: Show all available commands@BOT intern-daily
: Get a summary of internship positions posted in the last 24 hours@BOT ng-daily
: Get a summary of new graduate positions posted in the last 24 hours@BOT add-this
: Add the current room to the bot's target list (admin only)@BOT sheet
: Trigger a backup of the current job data to the configured Google Sheet (requires Google Sheets plugin)The WeChat Job Bot now supports backing up job data to Google Sheets. This feature can be enabled through the configuration in package.json
.
To enable the Google Sheets plugin, set the googleSheet
option to true
in the jobWxBotConfig
section of your package.json
:
"jobWxBotConfig": {
...
"googleSheet": true
}
The Google Sheets plugin requires the following environment variables:
GOOGLE_SERVICE_ACCOUNT_EMAIL
: The email address of your Google Service AccountGOOGLE_PRIVATE_KEY
: The private key of your Google Service AccountGOOGLE_SHEET_ID
: The ID of the Google Sheet where data will be backed upMake sure to set these environment variables before running the bot.
export GOOGLE_SERVICE_ACCOUNT_EMAIL='your-service-account@your-project.iam.gserviceaccount.com'
export GOOGLE_PRIVATE_KEY='-----BEGIN PRIVATE KEY-----\nYour Private Key Here\n-----END PRIVATE KEY-----\n'
export GOOGLE_SHEET_ID='your-google-sheet-id'
package.json
by setting "googleSheet": true
.Now, when you run the bot, it will be able to backup job data to your Google Sheet when the @BOT sheet
command is used.
We welcome contributions to improve this project! If you're interested in adding new features, fixing bugs, or enhancing the bot in any way, please check out our CONTRIBUTING.md file. It contains detailed information on how to contribute, including how to add new job providers.
If you have any suggestions or find a bug, please create an issue.
This project is licensed under the MIT License - see the LICENSE file for details.