sleamdge.client¶
Attributes¶
Classes¶
A client for entering the OTP interactively and validating credentials |
|
The main steam client of registered users |
|
Helper for the fact that everything we send is echoed, and we mostly |
Module Contents¶
- class sleamdge.client.CredentialsValidation(**k)[source]¶
Bases:
steam.Client
A client for entering the OTP interactively and validating credentials
- code_future: asyncio.Future[str][source]¶
- class sleamdge.client.SteamClient(session, **k)[source]¶
Bases:
steam.Client
The main steam client of registered users
- Parameters:
session (sleamdge.session.Session)
- async code()[source]¶
Get the current steam guard code.
Warning¶
This will read from
sys.stdin
if no shared_secret was passed tologin()
.- Return type:
- async get_contact_or_participant(message)[source]¶
- Parameters:
message (steam.Message)
- Return type:
Optional[Union[sleamdge.contact.Contact, sleamdge.group.Participant]]
- async on_typing(user, when)[source]¶
- Parameters:
user (steam.User)
when (datetime.datetime)
- async on_reaction_add(reaction)[source]¶
- Parameters:
reaction (steam.MessageReaction)
- Return type:
None
- async on_reaction_remove(reaction)[source]¶
- Parameters:
reaction (steam.MessageReaction)
- Return type:
None
- async on_clan_update(before, after, /)[source]¶
- Parameters:
before (steam.Clan)
after (steam.Clan)
- Return type:
None
- async on_group_update(before, after, /)[source]¶
- Parameters:
before (steam.Group)
after (steam.Group)
- Return type:
None
- async on_group_or_clan_update(before, after, /)[source]¶
- Parameters:
before (ClanOrGroup)
after (ClanOrGroup)
- Return type:
None
- async update_reactions(reaction)[source]¶
- Parameters:
reaction (steam.MessageReaction)
- Return type:
None
- async on_user_update(before, after)[source]¶
- Parameters:
before (steam.User)
after (steam.User)
- Return type:
None
- async add_emoticon(msg, emoticon)[source]¶
- Parameters:
msg (steam.Message)
emoticon (steam.Emoticon)
- Return type:
None
- async remove_emoticon(msg, emoticon)[source]¶
- Parameters:
msg (steam.Message)
emoticon (steam.Emoticon)
- Return type:
None