MailBot
is a discord bot which forwards new emails to your discord server, you can also reply to them or send new emails.
- discord.py
- aioimaplib
- aiosmtplib
- selectolax
$ pip install -r requirements.txt
In your config.py
:
# Bot Command Prefix
pre = 'm!'
# Discord Channel IDs
mail_channel_id = 739137691681030197
send_channel_id = 740050224139206769
# host:port
imap_host = 'imap.gmail.com:993'
smtp_host = 'smtp.gmail.com:465'
# AUTH for both imap & smtp
user = '[email protected]'
passwd = 'password123@'
#
from_mail = '[email protected]'
# Discord Bot Token
token = 'NzM3NzU5NjI1NTE2MTU1MDEw............'
This bot assumes that your smtp and imap credentials are the same.