Closed raiyan-alahiani closed 8 months ago
Hey Write.Print is not supposed to be printed, only called you need to remove the “print” in front ! 😁
On Sun 24 Mar 2024 at 02:06, Raiyan Alahiani @.***> wrote:
Hello ,
I'm kinda newbie and I wanted to know why after printing my prompt print None right after my text.
CODE `import discord import time from pystyle import Colors, Write import logging from discord.ext import commands
start_time = time.time()
intents = discord.Intents.default() bot = commands.Bot(command_prefix="!", intents=intents) Événement pour indiquer que le bot est prêt
@bot.event async def on_ready(): print("-------------------------------------------") print() print(Write.Print(f"🟢 • Connecté en tant que {bot.user.name}", Colors.purple, interval=0.02)) print(etp) print() print("-------------------------------------------")
end_time = time.time() elapsed_time_ms = (end_time - start_time) * 1000 etp = f"🕰️ • \033[95m{elapsed_time_ms:.2f} millisecondes\033[0m"
@bot.event async def on_error(event, *args, **kwargs): logging.error(f"Une erreur s'est produite lors de l'événement {event}", exc_info=True) Lancement du bot en utilisant le token
bot.run('TOKEN')
time.sleep(5)`
Thanks in advance ;)
— Reply to this email directly, view it on GitHub https://github.com/billythegoat356/pystyle/issues/40, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASRG6LYWY4U4N6OTTV63BSLYZYRIHAVCNFSM6AAAAABFFCOYXOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYDIMJSGMZDINA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks so much , you're so fast !
No worries 😁😎
On Sun 24 Mar 2024 at 02:08, Raiyan Alahiani @.***> wrote:
Thanks so much , you're so fast !
— Reply to this email directly, view it on GitHub https://github.com/billythegoat356/pystyle/issues/40#issuecomment-2016652006, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASRG6L7A5RNBUWHGO3XLAXTYZYRR7AVCNFSM6AAAAABFFCOYXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGY2TEMBQGY . You are receiving this because you commented.Message ID: @.***>
Will you add white soon ? Cause purple_to_white won't work
I discontinued this project and do not plan to work on it soon 😕
On Sun 24 Mar 2024 at 02:11, Raiyan Alahiani @.***> wrote:
Will you add white soon ? Cause purple_to_white won't work
— Reply to this email directly, view it on GitHub https://github.com/billythegoat356/pystyle/issues/40#issuecomment-2016652496, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASRG6L4QUD7FMTYA5DNCVFTYZYR3ZAVCNFSM6AAAAABFFCOYXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGY2TENBZGY . You are receiving this because you commented.Message ID: @.***>
Oww , okay. Keep it up , I love your works ;)
Thanks man!
On Sun 24 Mar 2024 at 02:14, Raiyan Alahiani @.***> wrote:
Oww , okay. Keep it up , I love your works ;)
— Reply to this email directly, view it on GitHub https://github.com/billythegoat356/pystyle/issues/40#issuecomment-2016653114, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASRG6L74OUXW3EZF2RTC2MDYZYSIRAVCNFSM6AAAAABFFCOYXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGY2TGMJRGQ . You are receiving this because you commented.Message ID: @.***>
Hello ,
I'm kinda newbie and I wanted to know why after printing my prompt print None right after my text.`
Thanks in advance ;)