A discord module that lets you send messages as a user
Other discord self-bots have more features but take up much more space. This can only send messages (for now) and is much more lightweight.
pip install discord-sender
# Import the module
import discord_sender.discord
# Create a user
user = discord_sender.discord.DiscordUser()
user.login_with_token(<token>)
user.login_with_credentials(<email>, <password>)
user.send_message_to_userID(<message>, <user id of recipient>)
if user.logged_in():
do_stuff()
user.send_message_to_channel(<message>, <channel id>)
user.get_channel_id(<user id of recipient>)
# Works even if credential auth was used
# Returns None if not logged in
user.user_info.get_token()
user.get_dms(<nice formatting, True or False>)
user.get_user_info_by_id(<user id>)
user.send_message_to_username(<message>, <username>)
user.get_channel_info(<channel id>)
user.get_user_info_by_username(<username>)
- Add cookie authentication
- Add sending in servers
- Add tests