Baracchino-Della-Scuola / Bot

Unused variable found PYL-W0612
Anti-pattern
Major
3 months agoa year old
Unused variable 'ending_note'
22        )
23
24        # Custom ending note
25        ending_note = f"(C) 2022 Il BaracchinoDella Scuola"26
27    async def on_ready(self):
28        print("Running. Printing wd")
Unused variable 'tts'
36    async def saytts(self, ctx, *, text):
37        temp = BytesIO()
38
39        tts = await self.tts.save(text, "tts.mp3", lang="it")40        voice_channel = ctx.author.voice.channel
41        if ctx.voice_client is not None:
42            await ctx.voice_client.move_to(voice_channel)
Unused variable 'temp'
34
35    @commands.command()
36    async def saytts(self, ctx, *, text):
37        temp = BytesIO()38
39        tts = await self.tts.save(text, "tts.mp3", lang="it")
40        voice_channel = ctx.author.voice.channel
Unused variable 'c'
 42            return
 43
 44        file = ctx.message.attachments[0]
 45        c = self.bot.get_channel(int(838728591238758411)) 46
 47        f = open("data/files/" + file.filename, "wb")
 48        r = requests.get(file.url)
Unused variable 'e'
55        try:
56            with redirect_stdout(stdout):
57                ret = await func()
58        except Exception as e:59            value = stdout.getvalue()
60            await ctx.send(f"```py\n{value}{traceback.format_exc()}\n```")
61        else: