Skip to content

Latest commit

 

History

History
76 lines (51 loc) · 1.63 KB

File metadata and controls

76 lines (51 loc) · 1.63 KB

mailbot

python aioimaplib aiosmtplib licence

MailBot

/attachments/help.png

MailBot is a discord bot which forwards new emails to your discord server, you can also reply to them or send new emails.

Installation

Requirements:

  1. discord.py
  2. aioimaplib
  3. aiosmtplib
  4. selectolax

Installation:

$ pip install -r requirements.txt

Config:

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 = 'test@gmail.com'
passwd = 'password123@'
#
from_mail = 'test@gmail.com'
# Discord Bot Token
token = 'NzM3NzU5NjI1NTE2MTU1MDEw............'

This bot assumes that your smtp and imap credentials are the same.