PythonistaGuild / TwitchIO

An Async Bot/API wrapper for Twitch made in Python.
https://twitchio.dev
MIT License
785 stars 163 forks source link

Add method for acquiring bot display name #411

Closed Zer0-One closed 1 year ago

Zer0-One commented 1 year ago

I'm trying to identify when someone mentions the bot (e.g @BotNameHere). Please consider either adding a Client property that contains the bot's display name, or adding a Message property that describes if the message is a mention to the bot.

chillymosh commented 1 year ago

This isn't an issue really and could have been a discussion. self.nick / self.bot.nick already exists so you can simply use this to check in your message.content.lower()

Zer0-One commented 1 year ago

Is there ever a situation where the IRC nick differs from a lowercased displayname or username? If not, then maybe the naming here could be made slightly less confusing.

>could have been a discussion

I don't use Discord.

LostLuma commented 1 year ago

https://github.com/PythonistaGuild/TwitchIO/discussions/categories/questions