-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
75 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from ro_py.client import Client | ||
import asyncio | ||
|
||
client = Client() | ||
|
||
user_name = "JMK_RBXDev" | ||
|
||
|
||
async def grab_info(): | ||
print(f"Loading user {user_name}...") | ||
user = await client.get_user_by_username(user_name) | ||
print("Loaded user.") | ||
|
||
print(f"Username: {user.name}") | ||
print(f"Display Name: {user.display_name}") | ||
print(f"Description: {user.description}") | ||
print(f"Status: {await user.get_status() or 'None.'}") | ||
|
||
|
||
def main(): | ||
loop = asyncio.get_event_loop() | ||
loop.run_until_complete(grab_info()) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters