-
-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Aditya <[email protected]> Co-authored-by: Kaif <[email protected]> Co-authored-by: Amit Sharma <[email protected]> Co-authored-by: Danish <[email protected]>
- Loading branch information
1 parent
352afe3
commit 180f64d
Showing
48 changed files
with
555 additions
and
349 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 |
---|---|---|
|
@@ -7,3 +7,5 @@ | |
|
||
|
||
from plugins import * | ||
|
||
bot = ultroid_bot |
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,31 @@ | ||
# Ultroid - UserBot | ||
# Copyright (C) 2020 TeamUltroid | ||
# | ||
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ > | ||
# PLease read the GNU Affero General Public License in | ||
# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>. | ||
|
||
""" | ||
✘ Commands Available - | ||
• `{i}bored` | ||
Get some activity to do when you get bored | ||
""" | ||
|
||
from . import async_searcher, ultroid_cmd | ||
|
||
|
||
@ultroid_cmd(pattern="bored$") | ||
async def bored_cmd(event): | ||
msg = await event.eor("`Generating an Activity for You!`") | ||
content = await async_searcher( | ||
"https://www.boredapi.com/api/activity", re_json=True | ||
) | ||
m = f"**Activity:** `{content['activity']}`" | ||
if content.get("link"): | ||
m += f"**Read More:** {content['link']}" | ||
if content.get("participants"): | ||
m += f"\n**Participants Required:** `{content['participants']}`" | ||
if content.get("price"): | ||
m += f"\n**Price:** `{content['price']}`" | ||
await msg.edit(m) |
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
fonttools | ||
covid | ||
emoji | ||
fonttools | ||
gtts | ||
jikanpy | ||
lyrics_extractor==3.0.1 | ||
pokedex.py | ||
pyshorteners | ||
pyfiglet | ||
pyjokes | ||
speechrecognition | ||
quotefancy | ||
wikipedia | ||
textblob | ||
lyrics_extractor==3.0.1 | ||
shazamio | ||
speechrecognition | ||
speedtest-cli | ||
emoji | ||
textblob | ||
wikipedia |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Ultroid - UserBot | ||
# Copyright (C) 2021-2022 TeamUltroid | ||
# | ||
# This file is a part of < https://github.com/TeamUltroid/Ultroid/ > | ||
# PLease read the GNU Affero General Public License in | ||
# <https://www.github.com/TeamUltroid/Ultroid/blob/main/LICENSE/>. | ||
|
||
""" | ||
✘ Commands Available - | ||
• `{i}character <character name>` | ||
Fetch anime character details. | ||
""" | ||
|
||
import jikanpy | ||
|
||
from . import * | ||
|
||
|
||
@ultroid_cmd(pattern="character( (.*)|$)") | ||
async def anime_char_search(event): | ||
xx = await event.eor(get_string("com_1")) | ||
char_name = event.pattern_match.group(1) | ||
if not char_name: | ||
await eod(xx, "`Enter the name of a character too please!`", time=5) | ||
jikan = jikanpy.jikan.Jikan() | ||
try: | ||
s = jikan.search("character", char_name) | ||
except jikanpy.exceptions.APIException: | ||
return await eod(xx, "`Couldn't find character!`", time=5) | ||
a = s["results"][0]["mal_id"] | ||
char_json = jikan.character(a) | ||
pic = char_json["image_url"] | ||
msg = f"**[{char_json['name']}]({char_json['url']})**" | ||
if char_json["name_kanji"] != "Japanese": | ||
msg += f" [{char_json['name_kanji']}]\n" | ||
else: | ||
msg += "\n" | ||
if char_json["nicknames"]: | ||
nicknames_string = ", ".join(char_json["nicknames"]) | ||
msg += f"\n**Nicknames** : `{nicknames_string}`\n" | ||
about = char_json["about"].split("\n", 1)[0].strip().replace("\n", "") | ||
msg += f"\n**About**: __{about}__" | ||
await event.reply(msg, file=pic, force_document=False) | ||
await xx.delete() |
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
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
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
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
Oops, something went wrong.