Skip to content

Commit

Permalink
Alexa Music
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTeamAlexa authored Nov 30, 2023
1 parent 8e2f8b2 commit 1751d08
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
3 changes: 1 addition & 2 deletions AlexaMusic/plugins/play/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
as you want or you can collabe if you have new ideas.
"""


from pyrogram import filters

from config import BANNED_USERS
from AlexaMusic import YouTube, app
from AlexaMusic.utils.channelplay import get_channeplayCB
from AlexaMusic.utils.decorators.language import languageCB
from AlexaMusic.utils.stream.stream import stream
from config import BANNED_USERS


@app.on_callback_query(filters.regex("LiveStream") & ~BANNED_USERS)
Expand Down
12 changes: 2 additions & 10 deletions AlexaMusic/plugins/play/play.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,14 @@
as you want or you can collabe if you have new ideas.
"""


import random
import string
from ast import ExceptHandler

from pyrogram import filters
from pyrogram.types import InlineKeyboardMarkup, InputMediaPhoto, Message
from pytgcalls.exceptions import NoActiveGroupCall

import config
from config import BANNED_USERS, lyrical
from strings import get_command
from AlexaMusic import Apple, Resso, SoundCloud, Spotify, Telegram, YouTube, app
from AlexaMusic.core.call import Alexa
from AlexaMusic.utils import seconds_to_min, time_to_seconds
Expand All @@ -38,7 +34,8 @@
from AlexaMusic.utils.inline.playlist import botplaylist_markup
from AlexaMusic.utils.logger import play_logs
from AlexaMusic.utils.stream.stream import stream
from AlexaMusic.utils.database import is_served_user
from config import BANNED_USERS, lyrical
from strings import get_command

# Command
PLAY_COMMAND = get_command("PLAY_COMMAND")
Expand All @@ -57,11 +54,6 @@ async def play_commnd(
url,
fplay,
):
if not await is_served_user(message.from_user.id):
await message.reply_text(
text="😢 ᴅᴇᴀʀ ʏᴏᴜ ᴀʀᴇ ɴᴏᴛ ᴀ ᴠᴇʀɪғɪᴇᴅ ᴀᴛ ᴀʟᴇxᴀ ᴅᴀᴛᴀʙᴀsᴇ.\n☔ ᴘʟᴇᴀsᴇ ᴜsᴇ /verify ᴛᴏ ᴠᴇʀɪғʏ ʏᴏᴜʀsᴇʟғ ᴀᴛ ᴀʟᴇxᴀ ᴅᴀᴛᴀʙᴀsᴇ.",
)
return
mystic = await message.reply_text(
_["play_2"].format(channel) if channel else _["play_1"]
)
Expand Down
5 changes: 2 additions & 3 deletions AlexaMusic/plugins/play/playlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@
as you want or you can collabe if you have new ideas.
"""


import os
from random import randint

from pykeyboard import InlineKeyboard
from pyrogram import filters
from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, Message

from config import BANNED_USERS, SERVER_PLAYLIST_LIMIT
from strings import get_command
from AlexaMusic import Carbon, YouTube, app
from AlexaMusic.utils.database import (
delete_playlist,
Expand All @@ -34,6 +31,8 @@
)
from AlexaMusic.utils.pastebin import Alexabin
from AlexaMusic.utils.stream.stream import stream
from config import BANNED_USERS, SERVER_PLAYLIST_LIMIT
from strings import get_command

# Command
PLAYLIST_COMMAND = get_command("PLAYLIST_COMMAND")
Expand Down
3 changes: 1 addition & 2 deletions AlexaMusic/plugins/play/toptracks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@
as you want or you can collabe if you have new ideas.
"""


import asyncio

from pyrogram import filters
from pyrogram.types import InlineKeyboardMarkup

from config import BANNED_USERS
from AlexaMusic import app
from AlexaMusic.utils.database import get_global_tops, get_particulars, get_userss
from AlexaMusic.utils.decorators.language import languageCB
Expand All @@ -25,6 +23,7 @@
top_play_markup,
)
from AlexaMusic.utils.stream.stream import stream
from config import BANNED_USERS

loop = asyncio.get_running_loop()

Expand Down

0 comments on commit 1751d08

Please sign in to comment.