davidhozic / discord-advertisement-framework

Automatic advertisements / shilling for Discord. GUI / Console, Multi-Accounts & More!

Home Page:http://daf.davidhozic.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Enhancement:] DM Responder

davidhozic opened this issue · comments

Summary

Create a DM responder.
The DM responder would send a fixed response when a certain keyword was used.

Basic Example

daf.client.ACCOUNT(
    ...,
    auto_responders=[
        DMResponder(keywords=["NFT"], constrains=[GuildConstraint(guild=123456789)]),
        GuildResponder(keywords=["BUY"], constrains=[ChannelConstraint(channel=2313213)], action=DMResponse(data=[])),
    ]
)

Unresolved questions

  • Multiple keywords?
  • Actual keywords (one word) or extended RegEx matching?

Merged with #527