#Allgemeine Hilfe

1 messages · Page 8 of 1

urban glen
#

Beides An

jade sapphire
#

Wieso gibt es ein Fehler an?

crystal star
#

mach mal pip freeze

jade sapphire
#

Okay

solid ingot
#

ja kontrollier mal pip freeze, unf geh mal alle schritt bei #🔍・pycord-help durch

jade sapphire
#

Im Terminal?

crystal star
#

ja

jade sapphire
#

Naja da kommt halt nicht wirklich viel raus

crystal star
#

schick hier mal bitte rein was kommt

jade sapphire
#

Schickt die aktuelle Versionen der Programme

crystal star
jade sapphire
#

öhh

#

Alles kalr hab

crystal star
#

ne

jade sapphire
#

habs

crystal star
#

ging darum das du es nicht haben solltest

jade sapphire
#

doch nicht

crystal star
#

haha

jade sapphire
#

hahaha

#

sorry hatte kurz hoffnungen

crystal star
#

hast du es wieder deinstalliert?

jade sapphire
#

Ja

#

Import Discord geht immernoch nicht

crystal star
#

vllt hast du pycord nicht richtg installiert mach mal pip uninstall py-cord und dann pip install -U py-cord==2.3.2

jade sapphire
#

Naja hab halt nur pip install py-cord gemacht

crystal star
#

ja funktioniert manchmal einfach nicht richtig idk

jade sapphire
#

Funktioniert immernoch nicht

#

Da steht no module found named: Discord

crystal star
#

dann absolut keine ahnung sorry

jade sapphire
#

Kann mir wer anders dann helfen bitte?

#

Jo

#

Habs selber gefixt

#

Musste Package Discord downloaden

crystal star
#

also in #🔍・pycord-help steht das man " discord " nicht haben sollte

jade sapphire
#

Also mir hats geholfen

#

Läuft jetzt alles

crystal star
#

denke aber nicht das der code richtig funktionieren wird

wise stone
#

das auch

jade sapphire
#

Also kurz closen und wieder starten?

wise stone
#

ja

jade sapphire
#

Läuft alles

burnt prairieBOT
#
Level Up!

Herzlichen Glückwunsch @jade sapphire, du bist jetzt Level 4 🎉

jade sapphire
#

Mein nächstes Problem

wise stone
jade sapphire
#

Cannot find reference 'Bot' in 'init.py'

wise stone
#

Zeig Mal code

jade sapphire
#
  1. Line
jade sapphire
wise stone
#

den verdecken DP_lost

#

doch kein Screenshot

#

Code Pasten und hier einfügen

solid ingot
wise stone
#

genau so xd

floral monolith
jade sapphire
#

wait

jade sapphire
#

import discord

bot = discord.Bot()

bot.run ("Token")

#

Sieht halt bis jetzt so aus hahaha

crystal star
#

pip uninstall discord

jade sapphire
#

Traceback (most recent call last):
File "C:\Users\Admin\PycharmProjects\Learning\main.py", line 3, in <module>
bot = discord.Bot()
^^^^^^^^^^^
AttributeError: module 'discord' has no attribute 'Bot'

wise stone
#

kann es schlecht erklären aber schau dir am besten die Videos von tibue99#3529 an

#

da wirds es ausführlich erklärt

jade sapphire
#

Was ist denn falsch?

jade sapphire
solid ingot
crystal star
jade sapphire
#

Naja

jade sapphire
#

Wieso seid ihr denn so geheim

solid ingot
jade sapphire
#

Aber

solid ingot
#

nein kein aber

jade sapphire
#

Wenn ich pip freeze mache

#

Sehe ich kein Discord

solid ingot
#

gut, dann schau dir die anderen beiden schritte an

jade sapphire
#

achso

#

EY

#

Ich raste gleich aus

#

Da steht jetzt No Moduel Named: Discord

#

Da steht bei Fixxes das ich den Discord Package Downloaden kann

#

Aber das sei ja falsch

#

könnt ihr mir helfen?

indigo sapphire
#

wie macht den mee6 den?

solid ingot
#

ich nehme mal an sie erstellen einen neuen bot

#

bin mir aber nicht 100% sicher wie sie das machen, sag mir bescheid wenn dus rausfindest

indigo sapphire
#

Leider nein ich versuche es herausfinden

thick haven
#

Kann mir jmd helfen

    async def play(self, ctx, search: wavelink.YouTubeTrack):
        if not ctx.voice_client:
            vc: wavelink.Player = await ctx.author.voice.channel.connect(cls=wavelink.Player)
        #elif not ctx.author.voice_client:
        #    return await ctx.repsond("Joine zuerst einem Voce Channel")
        else:
            vc: wavelink.Player = ctx.voice_client
        vc.play(search)```

Ignoring exception in command play:
Traceback (most recent call last):
  File "C:\Users\jurek\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\discord\commands\core.py", line 124, in wrapped
    ret = await coro(arg)
  File "C:\Users\jurek\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\discord\commands\core.py", line 948, in _invoke
    arg = await converter().convert(ctx, arg)
TypeError: Track.__init__() missing 2 required positional arguments: 'id' and 'info'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\jurek\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\discord\bot.py", line 1114, in invoke_application_command
    await ctx.command.invoke(ctx)
  File "C:\Users\jurek\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\discord\commands\core.py", line 375, in invoke
    await injected(ctx)
  File "C:\Users\jurek\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\discord\commands\core.py", line 132, in wrapped
    raise ApplicationCommandInvokeError(exc) from exc
discord.errors.ApplicationCommandInvokeError: Application Command raised an exception: TypeError: Track.__init__() missing 2 required positional arguments: 'id' and 'info'
scarlet pasture
thick haven
#

ja

scarlet pasture
# thick haven ja

dann weiß ich net weiter, außer du hast falsch eingerückt / 2x den gleichen command bzw, Namen

thick haven
#

hm ok

old ore
#

tibue du hast gesagt ich soll den button dem children übergeben ich hab bloß keine ahnung wo

urban glen
#

Application Command raised an exception: UnboundLocalError: local variable 'Button' referenced before assignment was will der

#

Button = Button() UnboundLocalError: local variable 'Button' referenced before assignment

solid ingot
#

der will dass du alles was du benutzt vorher definierst uwu

solid ingot
urban glen
#

Button = Button()

solid ingot
#

schick ganzen code

urban glen
#

@solid ingot check kurz dm für ganzen code

solid ingot
#

versuch die variable mal anders zu nennen als die klasse

urban glen
#

ok warte

urban glen
silk gulch
#

Da steht ja im Error eigentlich schon alles da.

silk gulch
#

^^

urban glen
#

verstehe ich trzm. nicht xD

silk gulch
#

Das ist nicht gut, wenn Du es nicht verstehst.

#

Kannst dich schließlich nicht ausschließlich an andere wenden, sondern Fehler auch verstehen.

silk gulch
#

Am besten versuchs erstmal ins Deutsche zu übersetzen.

urban glen
#

achso ok

#

was ist nen element von nem button

silk gulch
#

Was??

#

Am besten nicht Google verwenden, um was zu übersetzen. Kommt nur Müll raus..

#

@solid ingot -> #1020760853634633879 ? 😄

solid ingot
#

vlt eher gleich @solid ingot -> #1030872295843057737

serene ermine
fluid leaf
jade sapphire
#

schwör mal

#

was mach ich die ganze zeit

serene ermine
jade sapphire
#

ich hab pip install py-cord seine toten auferwecken lassen soviel ich das auch eingetippt hab

serene ermine
#

Vorher aber auch noch pip uninstall discord

serene ermine
jade sapphire
#

Fireslimex danke das du mir geholfen hast dank dir konnte ich meine toten wieder so programmieren können das die auferstehen konnten. Dank dir hat meine tote oma wieder zähne und mein Vater hat jetzt krebs.

#

jungs ihr sagt mir die ganze zeit die selbe scheiße

jade sapphire
#

Ja

#

aufjedenfall

#

jz mal auf ernst

serene ermine
#

Bruh

jade sapphire
#

Jungs ich bin so am zweifeln das ich keine haare mehr habe

#

Es geht einfach nicht

serene ermine
#

Ging es jemals oder noch nie?

burnt prairieBOT
#
Level Up!

Herzlichen Glückwunsch @serene ermine, du bist jetzt Level 2 🎉

Du hast <@&1042123300970696705> erhalten!

fluid leaf
#

Schreib mal pip freeze in dein Term. Und schick screen

jade sapphire
#

das ding ist

#

import discord geht nicht

#

er erkennt es nd

serene ermine
jade sapphire
#

der sagt discord gibt es nicht

fluid leaf
#

Astolon

jade sapphire
#

ja

fluid leaf
#

Mach mal pip freeze in dein Terminal und schick screen

jade sapphire
#

Zum ersten mal einer der mir hilft

#

und keine scheiß discord channel pingt

#

warte kurz

serene ermine
# jade sapphire der sagt discord gibt es nicht

https://youtu.be/zCO3KxV2zPI —> Probier mal so die packages zu installieren wenn du noch pycharm benutzt

How to Install Packages in PyCharm! PyCharm uses virtual environments. Packages need to be installed in the virtual environment before calling them in scripts. Beginner tutorial - plain n' simple.

Note: PyCharm creates a new virtual environment for every project! Knowing how to manage your virtualenv is key. Installing packages into the venv is...

▶ Play video
fluid leaf
#

Hä? Ich hab dich gerade was gefragt alter

jade sapphire
#

nein

#

ich meine das du der erste bist der mir hilft

fluid leaf
#

Aber schick bitte

jade sapphire
#

yes

crystal star
jade sapphire
#

@fluid leafSorryyyy

#

Jetzt

#

Musste kurz was machen

fluid leaf
#

Kd

jade sapphire
#

aiohttp==3.8.3
aiosignal==1.3.1
async-timeout==4.0.2
attrs==22.1.0
charset-normalizer==2.1.1
frozenlist==1.3.3
idna==3.4
multidict==6.0.3
py-cord==2.3.2
yarl==1.8.2

#

Nur das kommt

#

Und wenn ich import discord mache

#

kommt da: No module found "Discord"

tawdry leaf
tawdry leaf
#

nimm einf nextcord

jade sapphire
#

Muss ich das Discord Package runterladen?

jade sapphire
serene ermine
tawdry leaf
#

ja

tawdry leaf
solid ingot
jade sapphire
#

Ey

#

Muss ich Discord Package runterladen?

solid ingot
#

nein, siehe #🔍・pycord-help

tawdry leaf
serene ermine
tawdry leaf
#

JA mit Recht

#

😄

serene ermine
jade sapphire
#

ey jungs

tawdry leaf
jade sapphire
#

ich glaub ich habs geschafft

tawdry leaf
#

Ich glaube nicht

serene ermine
#

Ich glaub auch nicht

jade sapphire
#

Leck

#

Eyer

tawdry leaf
#

zeig ma

jade sapphire
#

ES GEHT NICHT
I

#

ICH SCHWÖRE ICH BUMS MEIN PC GLEICH

tawdry leaf
serene ermine
jade sapphire
#

ES GEHT NICHT MAN VERDAMMTE SCHEIßE

tawdry leaf
#

was steht da

#

#1020759567421931620 👀

jade sapphire
#

Unused import statement

tawdry leaf
#

ist doch supi

jade sapphire
#

ICH VERSUCHE SEIT 3 TAGEN ZU CODEN

#

3 Tage

tawdry leaf
#

es bleibt bei der versuchung

serene ermine
jade sapphire
#

Jungs

#

Muss ich Discord Packages herunterladen?

#

irgendwie geht es wenn ich es runterlade

serene ermine
jade sapphire
#

Ich weiß nicht wie ich das fixxen soll

serene ermine
serene ermine
jade sapphire
#

Ich schwöre ich bekomm gleich eine glatze

serene ermine
#

Ich Helf dir nicht mehr wenn du dich so blöd anstellst 🙃

jade sapphire
#

Es geht nicht

#

Bei gott ich schwöre auf meine lebendigen und auf meine toten

#

Es geht einfach nicht

serene ermine
#

Streng deine dendriten an

serene ermine
#

Oder use vsc

jade sapphire
#

WELCHE DENN

serene ermine
jade sapphire
#

Welches Package

serene ermine
#

Discord oder Wo auch immer der Error steht

burnt prairieBOT
#
Level Up!

Herzlichen Glückwunsch @serene ermine, du bist jetzt Level 3 🎉

jade sapphire
#

ich kack ab

burnt prairieBOT
#
Level Up!

Herzlichen Glückwunsch @jade sapphire, du bist jetzt Level 5 🎉

Du hast <@&1024276691205496872> erhalten!

jade sapphire
#

ich muss erstmal runter kommen

tawdry leaf
#

komm doch #1020759567421931620

#

😄

serene ermine
tawdry leaf
#

einfach lernen

serene ermine
#

True

silk gulch
tawdry leaf
silk gulch
tawdry leaf
vocal phoenix
#

Wie mache ich animierte Emojis nochmal in Embeds?

tawdry leaf
#

du machst des so

#

des schreibst du ins embed so wie es da ist dann wird es
bonk zu diesen emoji

#

also einf \emoji

#

und des dann usen

vocal phoenix
tawdry leaf
#

kd

indigo sapphire
#

kann mir jemand sagen wie ich mit meinem bot eine webhooks machen kann?

#

mit eine webhooks url?
sowas zb?

{"type": 1, "id": "959351032184438784", "name": "ChangChi", "avatar": "0fc49c947d4c0f875892884662288940", "channel_id": "957269215461666877", "guild_id": "868196316805730364", "application_id": null, "token":
serene ermine
indigo sapphire
#

what the fuck geill xD

#

ehren person

serene ermine
indigo sapphire
#

what that?
aiohttp, AsyncWebhookAdapter?

indigo sapphire
serene ermine
indigo sapphire
indigo sapphire
indigo sapphire
serene ermine
#

Muss gerade überlegen wie ich es erklären soll :d

indigo sapphire
#

:3 lass dir zeit bis am abend

#

oder freitag

#

idk aber ist das nicht usles?

  • AsyncWebhookAdapter
serene ermine
# indigo sapphire what that? aiohttp, AsyncWebhookAdapter?

Aiohttp ist so ähnlich wie requests nur das du hier eine Session öffnest und somit quasi einen http Client hast —> du kannst somit asynchrone Anfragen an URLs schicken

Asnycwebhookadapter brauchst du in den neuen Version eig nicht mehr/from_url hat jetzt andere Argumente

@client.command() ist halt nen ganz normaler Befehl für deinen dc bot

serene ermine
indigo sapphire
#

also würde bridge gehen?

serene ermine
indigo sapphire
#

was das den für ein fehler?

discord.errors.ExtensionFailed: Extension 'cogs.Credits' raised an error: ClientException: Callback for send-webhook command is missing "context" parameter.
#

code zum test:

@bridge.bridge_command(
        name='send-webhook', 
        description='test hook', 
        aliases=['sw',]
    )
    async def send_webhook(ctx):
        async with aiohttp.ClientSession() as session:
            webhook = Webhook.from_url(os.getenv('webhooks_url'), adapter=AsyncWebhookAdapter(session))

            await webhook.send('test hello world')
serene ermine
indigo sapphire
#

ja

serene ermine
serene ermine
indigo sapphire
#

das hier?

webhook = Webhook.from_url(os.getenv('webhooks_url'), adapter=AsyncWebhookAdapter(session))
#

oder das?

await webhook.send('test hello world')
serene ermine
indigo sapphire
#

hab ich es gibt aber imme noch fehler

#
discord.errors.ExtensionFailed: Extension 'cogs.Credits' raised an error: ClientException: Callback for send-webhook command is missing "self" parameter.
#

code:

# webhooks test
    @bridge.bridge_command(
        name='send-webhook', 
        description='test hook', 
        aliases=['sw',]
    )
    async def send_webhook():
        async with aiohttp.ClientSession() as session:
            webhook = Webhook.from_url(os.getenv('webhooks_url'), session=session)
            await webhook.send(content='test hello world')
serene ermine
indigo sapphire
serene ermine
indigo sapphire
#

schon versucht error

serene ermine
indigo sapphire
#
discord.errors.ExtensionFailed: Extension 'cogs.Credits' raised an error: ClientException: Callback for send-webhook command is missing "context" parameter.
#

what the fuck??
(self, ctx)?

serene ermine
indigo sapphire
#

funktioniert ty

indigo sapphire
#

blöd aber ty für alles

indigo sapphire
#

wie kann ich es machen das mein bot ein webhooks erstellt?

indigo sapphire
silk gulch
indigo sapphire
#

will mehr

silk gulch
#

Nämlich was?

indigo sapphire
#

der bot sollte mit webhooks news schicken

#

mit webscraping

silk gulch
#

Also möchtest Du Webhooks über pycord senden?

serene ermine
silk gulch
#

Jedem seins. Wie man möchte.

solid ingot
#

bei pycord ist eigentlich schon alles drin, was man für webhooks braucht

wise stone
#

wie kann ich in ne Task loop ein embed Nachricht fetchen und editieren lassen

solid ingot
#

auf embeds in einer Nachricht kannst du mit message.embeds zugreifen

#

wenn es nur ein embed ist, kannst du message.embeds[0] benutzen

wise stone
#

weil ich es schon gemacht habe

dense magnet
dense magnet
solid ingot
#

das geht überall, wo du ein Nachrichten Objekt hast

dense magnet
#

Solange du den Message Kontext hast kannst du damit Arbeiten egal in was für einer Funktion du bist

wise stone
#

aber wie fetchen ich die Nachricht automatisch falls die Nachricht nicht existiert

wise stone
#

will das die bot Nachricht per tasks loop editieren lassen und z.b. ein darin verändern

dense magnet
#

schon klar

wise stone
#

aber falls die Nachricht nicht gibt und der bot die nun sendet

#

wie dann fetchen

#

kein Bock immer die Nachrichten id zu holen

dense magnet
#

msg = await channel.send()

#

send returned die msg

wise stone
#
                #try:
                for embed in message.embeds[0]:
                    org_string = embed.description
                    size = len(org_string)
                    mod_string = org_string[:size - 1]
                    embed2 = discord.Embed(
                            title=f'{embed.title}',
                            description=f"TEST",
                            colour=discord.Colour.red()
                        )
                    await self.bot.get_channel(kanal[0]).edit(embed=embed2, file=file)     
              #  except:
               #     await self.bot.get_channel(kanal[0]).send(embed=embed, file=file)    ```
#

habs jz so gemacht

#

geht aba net und kein error 🤔

dense magnet
wise stone
#

bruh hahah xD

#

habe aber nirgendswo die nachricht definiert

#

das ist es ja wie editiere ich dann

dense magnet
#
await self.bot.get_channel(kanal[0]).fetch_message(ID).edit(embed=embed2, file=file)```
burnt prairieBOT
#
Level Up!

Herzlichen Glückwunsch @dense magnet, du bist jetzt Level 8 🎉

wise stone
#

ja ik aber will net immer die id manuell holen ist halt nervig

dense magnet
wise stone
#

hm ja ok

#
                for embed in message.embeds[0]:
                    org_string = embed.description
                    size = len(org_string)
                    mod_string = org_string[:size - 1]
                    embed2 = discord.Embed(
                            title=f'{embed.title}',
                            description=f"TEST",
                            colour=discord.Colour.red()
                        )
                    await self.bot.get_channel(kanal[0]).fetch_message(1050386813199589427).edit(embed=embed2, file=file)     ```
habs jz so wie du es gesagt hast gemacht aber es funkt nicht
dense magnet
#

error?

wise stone
#

keins

dense magnet
#
                for embed in message.embeds[0]:
                    org_string = embed.description
                    size = len(org_string)
                    mod_string = org_string[:size - 1]
                    embed2 = discord.Embed(
                            title=f'{embed.title}',
                            description=f"TEST",
                            colour=discord.Colour.red()
                        )
                print("1")
                await self.bot.get_channel(kanal[0]).fetch_message(1050386813199589427).edit(embed=embed2, file=file)
#

Mach mal so bitte

dense magnet
dense magnet
#

Und warum versuchst du durch das erste embed durch zu loopen?

wise stone
wise stone
#

bin lost mit edit

dense magnet
serene ermine
wise stone
#

egal mache es jz anders

vocal phoenix
#

Ich bekomme dauernt diesen Error, obwohl da nix ist

serene ermine
vocal phoenix
#

In der Zeile steht da aber nix

dense magnet
dense magnet
vocal phoenix
#

da steht nix

wise stone
dense magnet
#

komm kurz talk dann erklär ichs dir

wise stone
#

kann Grade net

dense magnet
dense magnet
wise stone
#

erst um 18 Uhr

dense magnet
#

k

dense magnet
vocal phoenix
dense magnet
vocal phoenix
#

das geht nicht alles auf einen screen

dense magnet
#

Dann als text

#

Sonst hier auch einmal eine erklärung wie du das Encoding in deiner Datei änderst

vocal phoenix
dense magnet
vocal phoenix
#

oh lost

#

jetzt ist es aber die zeile

dense magnet
vocal phoenix
#

ah ja danke

#

es geht

dense magnet
#

top

vocal phoenix
#

Gibt keinen Error

dense magnet
vocal phoenix
#

Die "Nicht-Slash-Commands" gehen

dense magnet
indigo sapphire
#

hey wollte fragen wie kann man mehrere webhooks naricht auf einmal schicken?

vocal phoenix
indigo sapphire
#

bin zu blöd um ein mehrere naricht in eine webhooks zu verschicken

#

das ist zb meine liste:

webhooks_urls=[
    ('https://discord.com/api/webhooks/1050351839784222770/R6KQzR1MqYcY5Cmr58L9Ps91L_8dOFVlNRYN1H4BKhSLPVyH97DR1zVauteX6M3nj6'),
    ('https://discord.com/api/webhooks/959351032184438784/s0JZtuKuvlBtMPTwz3Px2IPHmTQAr2P1tSMAfKfFkmWEojvoc3Tk5ylmEWakEhMxYn'),
]
crystal star
indigo sapphire
# crystal star wie sendet man überhaupt nachrichten über webhook urls?

etwa so:

    @bridge.bridge_command(
        name='send-webhook', 
        description='test hook', 
        aliases=['sw',]
    )
    async def send_webhook(self,ctx):
        async with aiohttp.ClientSession() as session:
            webhook = Webhook.from_url(os.getenv('webhooks_url'), session=session)
            await webhook.send(content='test hello world')
#
webhooks_url=('https://discord.com/api/webhooks/1050351839784222770/R6KQzR1MqYcY5Cmr58L9Ps91L_8dOFVlNRYN1H4BKhSLPVyH97DR1zVauteX6M3nj6Vd', 'https://discord.com/api/webhooks/959351032184438784/s0JZtuKuvlBtMPTwz3Px2IPHmTQAr2P1tSMAfKfFkmWEojvoc3Tk5ylmEWakEhMxYnMl')
indigo sapphire
#

problem in .env schickt es als einzelne buchstaben

indigo sapphire
#

für was?

#

kannst du helfen?
schaffe mit os keine webhooks liste

crystal star
#

keine ahnung wie es mit .env geht

#

benutze nur json

indigo sapphire
#

ahh ook

crystal star
#

bei json würde ich es mit einer for schleife machen

indigo sapphire
#

joa das wäre kein problem

#

werd aber eh mit sqlite arbeiten

#

aber ty

#

also einfach mit for schleife naricht schicken?

crystal star
# indigo sapphire also einfach mit for schleife naricht schicken?
    @slash_command()
    async def send_webhook(self, ctx):
        
        webhook_links = ["https://discord.com/api/webhooks/1050351839784222770/R6KQzR1MqYcY5Cmr58L9Ps91L_8dOFVlNRYN1H4BKhSLPVyH97DR1zVauteX6M3nj6Vd", "https://discord.com/api/webhooks/959351032184438784/s0JZtuKuvlBtMPTwz3Px2IPHmTQAr2P1tSMAfKfFkmWEojvoc3Tk5ylmEWakEhMxYnMl"]
        
        async with aiohttp.ClientSession() as session:
            for link in webhook_links:
                webhook = discord.Webhook.from_url(link, session=session)
                await webhook.send(content='test hello world')
#

würde es ungefähr so machen

indigo sapphire
#

ty

crystal star
#

brauchst halt die urls wie du sie bekommst ist ja eigentlich egal

indigo sapphire
#

werde es mit datenbank machen

crystal star
#

jo

indigo sapphire
#

nur weiss ich nicht wie ich von eine reihe die db bekomme

crystal star
#

wie meinst du?

indigo sapphire
#

naja ich will zb nur alle infos aus column Webhooks_Urls zb

crystal star
#

achso wüde es nicht ungefähr so gehen?

        urls = []      
      
        async with aiosqlite.connect("db.db") as db:
            async with db.execute(
                "SELECT Webhooks_Urls FROM webhooks") as idk:
                    async for Webhooks_Urls in idk:
                        urls.append(Webhooks_Urls)
indigo sapphire
#

joa bin ich auch darauf gekommen

#

@crystal star in datenbank wird mir das geprintet:

[('https://discord.com/api/webhooks/1050432438461014067/s9v6yEziqzlecqqhi411ltEy6k9jvll_6yUDL5rDUQgkThsWGCpjtwFA8mh6pQW-xDpi',), ('https://discord.com/api/webhooks/959351032184438784/s0JZtuKuvlBtMPTwz3Px2IPHmTQAr2P1tSMAfKfFkmWEojvoc3Tk5ylmEWakEhMxYnMl',)]
crystal star
indigo sapphire
#

Joa es ist auch nichts mehr

#

🤣

#

Ist nur zum Testzwecke

crystal star
#

musst die links halt in eckigen klammern haben []

indigo sapphire
lofty haven
#

kann mir bitte fix wer sagen wie man nen embed im cog macht

dense magnet
fluid leaf
tawdry leaf
fluid leaf
#

Lass mal sein

tawdry leaf
#

nö 😦

burnt prairieBOT
#
Level Up!

Herzlichen Glückwunsch @tawdry leaf, du bist jetzt Level 9 🎉

serene ermine
crystal star
serene ermine
serene ermine
tawdry leaf
open dragon
solid ingot
open dragon
serene ermine
tawdry leaf
tawdry leaf
serene ermine
tawdry leaf
#

will doch nd mogeln

jade sapphire
#

junge

#

ich schaff es einfach nicht

#

mein bot online zu bringen

tawdry leaf
#

bei #1020759567421931620 ist immer ein Platz für dich ❤️

jade sapphire
#

junge junge

#

ich fang mit Visual Studio an

#

dieser scheiß Pycharm funktioniert nicht

dense magnet
#

auf jedenfall keine gute

jade sapphire
#

node.js

dense magnet
#

Ist ja zur UI Programm entwicklung nicht für skripte

jade sapphire
#

naja es gibt viele die auf VS coden

#

discord bots

dense magnet
#

Du meinst nicht zufällig VSC?

jade sapphire
#

VSC sorry

dense magnet
#

Visual Studio ist was anderes als Visual Studio Code xd

jade sapphire
#

Ja halt VSC haha

#

Bin halt ein Anfänger

#

Lerne es warscheinlich noch

dense magnet
jade sapphire
#

( Ich hoffs mal )

dense magnet
jade sapphire
#

haha yes

dense magnet
jade sapphire
#

Danke :)

dense magnet
#

gern xd

jade sapphire
#

Hatte halt wirklich probleme mit Pycharm

#

Hat einfach nicht funktioniert

dense magnet
#

was hat ddenn nicht funktioniert?

jade sapphire
#

Dann hab ich mich mal bisschen Informiert und hab dann herausgefunden das die meisten auch VSC zum coden benutzen, dann dachte ich mir: "why not xD"

jade sapphire
tawdry leaf
#

Bist du schon gebrochen

jade sapphire
#

Obwohl ich kein discord oder discord.py gedownloadet habe

tawdry leaf
#

👀

dense magnet
jade sapphire
tawdry leaf
#

😄

jade sapphire
tawdry leaf
jade sapphire
#

Naja wie auch immer, ein neues Kapitel jetzte

tawdry leaf
#

supa

jade sapphire
dense magnet
tawdry leaf
#

👀

jade sapphire
jade sapphire
tawdry leaf
#

gibt einen shortcut

#

shutdown /r /t 0

dense magnet
tawdry leaf
#

außer

#

er hat den virus deluxe

#

dann geht alles 👀

tawdry leaf
jade sapphire
#

Lucky schon wieder einmal Hilfsbereit

serene ermine
urban glen
#

await channel.send(content=f":PX_Logo: » **Hey! Nimm dir bitte 2 Minuten und lese mich einmal durch...**\n" AttributeError: 'NoneType' object has no attribute 'send'
Was

dense magnet
jade sapphire
#

boaaaah

#

es klappt bis jz

tawdry leaf
dense magnet
tawdry leaf
#

der channel is nicht angegeben

serene ermine
tawdry leaf
#

mach einf wenn channel none ist das channel der ctx.channel is

dense magnet
tawdry leaf
dense magnet
dense magnet
tawdry leaf
#

serene ermine
dense magnet
dense magnet
#

Noice

urban glen
dense magnet
tawdry leaf
#

der channel wurde aber auch nicht angegeben 😐

tawdry leaf
#

@jade sapphire wasn jz

tawdry leaf
urban glen
tawdry leaf
#

dachte an einen anderen cmd bei den man den channel im cmd angeben muss

dense magnet
tawdry leaf
tawdry leaf
dense magnet
#

kann auch durchaus an was anderem liegen

tawdry leaf
#

ja

dense magnet
#

Das ist nicht die einzige möglichkeit dies da gibt 👀

tawdry leaf
#

an den der den code gemacht hat 😄

urban glen
jade sapphire
#

OIDAAAA

#

Ich fühle mich so mächtig gerade

#

Ich schaff es einfach

tawdry leaf
jade sapphire
#

Ey jungs

#

Brauche hilfe

dense magnet
jade sapphire
#

const config = require('./settings.json')
const token = config.token
const { Client } = require('discord.js')
const client = new Client({intents:[]})

client.once("ready", () => {

console.log ('Description')
client.user.setActivity({name: "Bereit für die totale Katastrophe", type: "PLAYING"})

})

client.login(token)

#

Wieso geht es nicht wenn ich node index.js mache?

tawdry leaf
#

oh gootrrr

jade sapphire
#

Mein bot läuft dann irgendwie nicht

tawdry leaf
#

du bist in python help 😦

jade sapphire
tawdry leaf
jade sapphire
#

Ja dann haste ja hier im Channel nix verloren

#

Da steht Unexpected Token

tawdry leaf
#

na höörr mal

tawdry leaf
#

jaa

#

gib ihm was er braucht

#

brech ihn

jade sapphire
#

@dense magnetKannst du mir helfen?

tawdry leaf
#

hahahahahah

#

Broooo

#

du bist in pyyy

floral monolith
#

#🔰・old-help-rules

open dragon
#

Bro brauxhst du real takk Java hilfe?

tawdry leaf
#

Schava

jade sapphire
#

Ich hab keine ahnung wie man Codet

#

Daswegen brauch ich doch hilfe

open dragon
#

Java??

jade sapphire
#

Was Java man

open dragon
#

Welche sprsche

jade sapphire
#

Gute frage

#

Programmiere auf VSC

#

Mit Node.js

tawdry leaf
#

soll ich dir helfen

jade sapphire
#

nein

#

du nicht

fluid leaf
#

.js ist javascript

jade sapphire
#

keine ahnung was für ein mist du dann erzählen wirst

fluid leaf
#

Und das ist nicht Java Java

jade sapphire
tawdry leaf
jade sapphire
#

mach dich ab lucky

tawdry leaf
#

du willst Java

#

dann nenn deine file um

#

index.java

jade sapphire
#

Ja im Video steht das ich index.js machen sollte

tawdry leaf
jade sapphire
#

ey bitte

#

sei mal leise

tawdry leaf
jade sapphire
#

leave mal kurz den server

#

helf oder helf nicht

tawdry leaf
quiet socket
#

Hab endlich eine Lösung dafür

#

#1050502920191352943

tawdry leaf
#

ja dein post

jade sapphire
#

kann mir niemand helfen?

tawdry leaf
jade sapphire
#

Wenn ich index.js schreibe läuft mein bot nicht

#

obwohl ich alles richtig getippt habe

tawdry leaf
#

schreibe node .

jade sapphire
#

node index.js geht ja nicht

tawdry leaf
#

ja ist auch falsch

#

sag ich

jade sapphire
#

was sollte ich denn stattdessen schreiben?

burnt prairieBOT
#
Level Up!

Herzlichen Glückwunsch @jade sapphire, du bist jetzt Level 6 🎉

tawdry leaf
#

damit habe ich zumindest gestartet sonst frag doch einf prime junge 😄

#

oder Devin

jade sapphire
#

nur node .?

tawdry leaf
jade sapphire
#

geht nicht

open dragon
open dragon
jade sapphire
#

jo habs hinbekommen

open dragon
#

Okey

dense magnet
jade sapphire
#

Musste Auto Saven

tawdry leaf
#

ja mein ich auch

tawdry leaf
jade sapphire
#

Danke aber euch nochmals

open dragon
#

@jade sapphire codes du mit Intellij oder VSC

tawdry leaf
#

bsc

tawdry leaf
#

vsc steht obem

open dragon
#

Okey

#

IntelliJ ist besser👍

tawdry leaf
#

xD

open dragon
#

Doch

tawdry leaf
open dragon
#

Kann aber kein Js oder was auxh immer nutzen

jade sapphire
#

Bin so stolz auf mich ahaha

#

mein bot ist einfach online

open dragon
#

Wow

tawdry leaf
open dragon
#

Jetz schließ ma deine app

jade sapphire
#

why

tawdry leaf
jade sapphire
#

echt?

#

wie bleibt er denn 24/7 online

tawdry leaf
#

j

#

o

tawdry leaf
jade sapphire
#

bero host

#

les go

tawdry leaf
#

für geld xD

jade sapphire
#

ik

#

kein problem

open dragon
#

Geh lieber alpha host

tawdry leaf
#

geh lieber auf kostenlose

open dragon
#

Alpha host

tawdry leaf
#

gibt bessere

open dragon
#

Sei nicht wie @solid ingot & zahle net 20€ den Monat

tawdry leaf
#

bei sein bot rendiert es sich mehr oder weniger ist auch überteurt

open dragon
#

Jaq

#

Er sollte lieber seine 800 couns nutzen

tawdry leaf
#

gibt desselbe bestimmt für 12

solid ingot
jade sapphire
tawdry leaf
open dragon
#

Sei nicht dumm und geh nicht auf endelon

tawdry leaf
open dragon
#

Ne schwieze / Polen

tawdry leaf
#

ne nix guten ping

open dragon
#

Doh doh

tawdry leaf
#

ne

open dragon
#

Wo pingen mi

tawdry leaf
#

immer über hundert

open dragon
#

Eyy

#

Eyy

#

@solid ingot mein Herz tut weh

#

Wie kannst du nur replit als schmuz bezeichnen

#

War meine erste IDE also wirklich

urban glen
#

Ohayoo, wie kann ich einen respond bearbeiten?

open dragon
#

Mit einen Code👍

solid ingot
urban glen
open dragon
#

Ja also Code in Pycord

urban glen
#

wie genau

open dragon
#

Was willst du den genau nachen

dense magnet
urban glen
#

await ctx.edit.respond geht nicht

open dragon
#

Du kleiner hu

urban glen
tawdry leaf
open dragon
dense magnet
urban glen
open dragon
tawdry leaf
open dragon
tawdry leaf
#

editor ist besser als replit

dense magnet
tawdry leaf
#

vsc gibt es als website

urban glen
#

Wie kann ich einen respond bearbeiten?

tawdry leaf
#

und notfalls koder app

open dragon
#

Ja gibts keine Außer repliy

tawdry leaf
open dragon
urban glen
floral monolith
#

#💬・chat

#

#💬・chat

#

der nächste kriegt ein timeouit

open dragon
tawdry leaf
jade sapphire
#

Wie kann ich auf Bero Host ein Bot hosting kaufen?

tawdry leaf
#

es scheppert gleich

open dragon
tawdry leaf
#

ich zahle dir warte xD

jade sapphire
#

was empfehlt ihr denn

open dragon
#

Bero nix gut

tawdry leaf
open dragon
tawdry leaf
#

keinen host aus de

urban glen
jade sapphire
#

why?

tawdry leaf
#

nimm discloud trust

dense magnet
#

Contabo PepeOK

tawdry leaf
open dragon
#

Der kommt jetz mit Contabo??

urban glen
dense magnet
open dragon
dense magnet
open dragon
#

Nein hab mal aber, contabo kostett 20€

urban glen
burnt prairieBOT
#
Level Up!

Herzlichen Glückwunsch @elder epoch, du bist jetzt Level 10 🎉

Du hast <@&1032921984612433952> erhalten!

open dragon
#

Als anfänger nix gut

urban glen
jade sapphire
#

wie kauf ich ein hosting?

open dragon
#

Trzd Teuer

open dragon
tawdry leaf
#

replit used du wenn du ein code von replit used

tawdry leaf
jade sapphire
#

Ja aber was denn

#

Server hosting oder wie?

open dragon
#

Wat?

urban glen
# burnt prairie

@solid ingot dein levelsystem ist safe kaputt ich bin jetzt schon denke ich zum dritten mal lvl. 10 geworden...

open dragon
floral monolith
#

#💬・chat

urban glen
solid ingot
#

und geht bitte in #💬・chat für alles außer coding fragen

devout orchidBOT
#
Infos über Flashbang

• Account erstellt: <t:1598972847:R>
• Server Beigetreten: <t:1667772492:R>

@floral monolith • AvatarProfilBannerID: 750371249229660222

🎁 Boost

Dieser User boostet den Server seit 27 Tagen.

🏷️ Bisherige Usernames

<t:1668302322:d> - !Sniex#7188

🏷️ Bisherige Nicknames

<t:1669656339:d> - Flashbang

🔰 Geändert von

@solid ingot

dense magnet
# tawdry leaf

Und was bringts dir? Die Discord API ist eh zu langsam durch die Rate Limits

urban glen
jade sapphire
#

wie haste ich jz?

floral monolith
#

#💬・chat

tawdry leaf
dense magnet
#

Und der Ping bei Contabo ist halt immernoch besser als bei strato usw

jade sapphire
#

Etwas von Discord Bot steht da nicht

urban glen
tawdry leaf
vocal phoenix
#

Meine /-Commands gehen seit paar Stunden einfach nicht mehr+

burnt prairieBOT
#
Level Up!

Herzlichen Glückwunsch @vocal phoenix, du bist jetzt Level 7 🎉

vocal phoenix
#

es kommt kein error

vocal phoenix
#

Den ganzen Code?

tawdry leaf
#

joa idk

#

mach am besten eigenen post

urban glen
#

Was will der

tawdry leaf
#

du hast des nicht importiert

#

missing import

#

import easy_pil

urban glen
dense magnet
#

Du nutzt diesen Import nicht

burnt prairieBOT
#
Level Up!

Herzlichen Glückwunsch @dense magnet, du bist jetzt Level 9 🎉

dense magnet
#

Du hast es importiert aber nirgends im skript verwendet

tawdry leaf
#

dann wäre da doch unused?

urban glen
tawdry leaf
#

und es auch da stehen

#

bei manchen

#

zumindest bei pycharm

urban glen
urban glen
tawdry leaf
tawdry leaf
#

es gibt ja manche die heißen beim import anders als bei installation usw

urban glen
tawdry leaf
#

hm

urban glen
solid ingot
#

also mein easy_pil import funktioniert ja

urban glen
tawdry leaf
#

benutze des gar nd wozu braucht man des

#

bestimmt pycord schmutz

urban glen
#

da in Nextcord geht es

silk gulch
#

Liegt das an Discord?

solid ingot
#

ja

#

das dauert bisschen

silk gulch
#

Einfach abwarten?

#

Okay. 😄

urban glen
tawdry leaf
urban glen
tawdry leaf
#

dann use doch pillow hö

urban glen
tawdry leaf
#

dann use

#

was anders

urban glen
tawdry leaf
#

scikit

tawdry leaf
urban glen
tawdry leaf
#

oder ich meine was anderes

urban glen
tawdry leaf
urban glen
#

Wie kann man halt anzeigen lassen (bei meinem Fall): wie lange man halt afk war?

#

Halt dass sofort nachdem man den Command benutzt hat die Zeit aufgezählt wird

tawdry leaf
#
@bot.command()
async def afk(ctx, mins):
    current_nick = ctx.author.nick
    await ctx.send(f"{ctx.author.mention} has gone afk for {mins} minutes.")
    await ctx.author.edit(nick=f"{ctx.author.name} [AFK]")

    counter = 0
    while counter <= int(mins):
        counter += 1
        await asyncio.sleep(60)

        if counter == int(mins):
            await ctx.author.edit(nick=current_nick)
            await ctx.send(f"{ctx.author.mention} is no longer AFK")
            break```
so in der art maybe
#

nur eben einen globalen counter sodass man den in einen anderen cmd auch usen kann

tawdry leaf
#

Wie macht man des

#

oder des bevor ich des nur bei verified bots gesehen habe

wise stone
#

@tawdry leaf

#

Wie kann ich Slash Commands von Bots in Nachrichten erwähnen?

Du musst in der Nachricht ein spezielles Format einhalten:

Normale Slash Commands: </CommandName:ID>
Slash Commands in einer Gruppe: </GruppenName CommandName:ID>
Slash Commands unterkategorisiert von einer Gruppe: </CommandName GruppenName UnterkategorieName:ID>

Beispiel:

</help:1025100137518870588> -> </help:1025100137518870588>

So bekommst du die Slash Command ID:

Tippe den Slash Command in das Textfeld und kopiere dir bei dem Namen des Commands die ID per Rechtsklick. (Entwicklermodus musss aktiviert sein)

https://i.imgur.com/KT1SPpa.gif

tawdry leaf
#

Ne dann lieber eins des mehr OG ist

#

😬

silk gulch
#

Upps sollte gar nicht hier rein xD

indigo sapphire
indigo sapphire
#

hab es gelöst

#

musste nur 2 mal for in machen

indigo sapphire
#

wie kann ich per slash command das hier bekommen?

#

möchte die sprach einstellung der user bekommen

thick haven
#

Geht das

thick haven
#

Überhaupt

indigo sapphire
#

denke schon

#

hätte da eine andere frage was ist das für eine error?

raise ApplicationCommandInvokeError(exc) from exc
discord.errors.ApplicationCommandInvokeError: Application Command raised an exception: OperationalError: database is locked
#

code:

async def dm(self, ctx):
        async with aiosqlite.connect(os.getenv('UserConfigSQL')) as db: # Lite connect
            async with db.execute(f""" 
                SELECT UserID FROM UserConfig
                WHERE News_7DSGC_BOOL = True
                """,) as cursor:
                results = await cursor.fetchall()
            for x in results:
                for userid in x:
                    try:
                        await ctx.guild.get_member(userid).send('hey')
                    except:
                        # coden das es false ist eingabe der value in falls ändern
                        async with aiosqlite.connect(os.getenv('UserConfigSQL')) as db: # Lite connect
                            async with db.execute(f""" 
                                UPDATE UserConfig
                                SET News_7DSGC_BOOL = False
                                WHERE UserID = '{userid}'
                                """,) as cursor:
                                await cursor.fetchone()
                            await ctx.respond('Fehler aus DB wurde Korriegiert')
solid ingot
indigo sapphire
#

Okay 👌

#

Kann ich auch alle user Daten bekommen?

#

Alter ect

solid ingot
#

nein natürlich nicht

#

am besten noch die IP xD

indigo sapphire
#

Okay 👌
Da frag ich mal mein bekanntes bot coder

solid ingot
indigo sapphire
solid ingot
#

das ist wenn du zB ne Website hast wo man sich mit discord einloggen kann

#

glaube ich

#

der einzige Weg das Alter zu bekommen ist durch ein Formular wo der User sein alter angibt

indigo sapphire
#

ect

#

was soll das für ein schlechte error sein?

#
Ignoring exception in command direct-message:
Traceback (most recent call last):
  File "c:\Users\Manuel Berchtold\OneDrive - Kantonale Schule für Berufsbildung\Dokumente\Python\ShrioLaplaceBot\ShiroSystem\cogs\NewsletterBeta.py", line 64, in dm
    await ctx.guild.get_member(userid).send('hey')
AttributeError: 'NoneType' object has no attribute 'send'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Manuel Berchtold\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\commands\core.py", line 127, in wrapped
    ret = await coro(arg)
  File "C:\Users\Manuel Berchtold\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\commands\core.py", line 907, in _invoke
    await self.callback(self.cog, ctx, **kwargs)
  File "c:\Users\Manuel Berchtold\OneDrive - Kantonale Schule für Berufsbildung\Dokumente\Python\ShrioLaplaceBot\ShiroSystem\cogs\NewsletterBeta.py", line 73, in dm
    await cursor.commit()
AttributeError: 'Cursor' object has no attribute 'commit'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\Manuel Berchtold\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\bot.py", line 1009, in invoke_application_command
    await ctx.command.invoke(ctx)
  File "C:\Users\Manuel Berchtold\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\commands\core.py", line 359, in invoke
    await injected(ctx)
  File "C:\Users\Manuel Berchtold\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\commands\core.py", line 135, in wrapped
    raise ApplicationCommandInvokeError(exc) from exc
discord.errors.ApplicationCommandInvokeError: Application Command raised an exception: AttributeError: 'Cursor' object has no attribute 'commit'
#

mein code zum test:

async with aiosqlite.connect(os.getenv('UserConfigSQL')) as db: # Lite connect
            async with db.execute(f""" 
                SELECT UserID FROM UserConfig
                WHERE News_7DSGC_BOOL = True
                """,) as cursor:
                results = await cursor.fetchall()
            for x in results:
                for userid in x:
                    try:
                        await ctx.guild.get_member(userid).send('hey')
                    except:
                        async with aiosqlite.connect(os.getenv('UserConfigSQL')) as db: # Lite connect
                            async with db.execute(f""" 
                                UPDATE UserConfig
                                SET News_7DSGC_BOOL = False
                                AND ValorantNews_BOOL = False
                                WHERE UserID = '{userid}'
                                """,) as cursor:
                                await cursor.commit()
                            await ctx.respond('Succes')
solid ingot
#

dein Channel ist none

#

würde also wahrscheinlich nicht gefunden

indigo sapphire
indigo sapphire
#

es geht eher um das hier:

discord.errors.ApplicationCommandInvokeError: Application Command raised an exception: AttributeError: 'Cursor' object has no attribute 'commit
solid ingot
#

achso da waren mehrere errors in deiner nachricht xD

tender horizon
#

Wie kann man noch mal Bilder mit Python bearbeiten?

indigo sapphire
solid ingot
#

mit pillow

tender horizon
indigo sapphire
solid ingot
#

das geht genauso wie ohne pycord

indigo sapphire
#

Naja ich will eben die Beschreibung anpass bar für Slash commands machen

indigo sapphire
#

es geht um die beschreibung für 2 sprache

tender horizon
indigo sapphire
#

Unötig

#

Mit eine Json geht es einfacher

tender horizon
indigo sapphire
#

ty ❤️

tender horizon
#

Bin aber erst ca um 20 Uhr Zuhause

dense magnet
indigo sapphire
#

👀

#

und idk wie json geht

urban glen
#

Wie kann man Embed's bearbeiten?

solid ingot
#

message.edit(embed=embed)

#

also da musst du dann das neue embed reintun, das durch das alte ersetzt wird

indigo sapphire
#

Mit Edit ist alles die Lösung

tawdry leaf
#

Jo

urban glen
tawdry leaf
#

Mach channel.send ohne Interaction dann geht es

#

Man man man

tawdry leaf
#

Bei mir geht es

urban glen
tawdry leaf
#

Wenn ich daheim bin

tawdry leaf
# urban glen

Würde mal behaupten das wo anders der Fehler ist und nicht dort

#

Du hast nur ein Teil geschickt 🙃

tawdry leaf
# urban glen

Da ist doch bei Modal der Fehler und nicht bei Channel

#

Du gibst da wohl was ein aber machst die Ausgabe davon falsch 🤔

urban glen
# tawdry leaf Du hast nur ein Teil geschickt 🙃
class Bug_Modal(discord.ui.Modal):
    def __init__(self, *args, **kwargs):
        super().__init__(
            discord.ui.InputText(
                label="🤖 - Bug Melden",
                placeholder="Schreibe hier das Problem...",
                style=discord.InputTextStyle.long
            ),
            *args,
            **kwargs
        )

    async def callback(self, bot, interaction):
        self.bot = bot
        embed = discord.Embed(
            title="Neue Bug-Meldung | Fishy",
            description=f"Bug gemeldet von: {interaction.user.mention}\n"
            f"**Meldung:** {self.children[0].value}",
            color=0x5865F2
        )
        channel = self.bot.get_channel(1050798477166256198)
        await channel.send(embed=embed)
        await interaction.response.send_message("Dein Bug wurde erfolgreich gemeldet!", ephemeral=True)
tawdry leaf
#

Der Fehler ist bei Self.children value

urban glen
#

dass sollte eig. richtig sein

tawdry leaf
#

Hm

#

Mach mal Interaction bei call back raus 🤔

#

Was passiert dann

urban glen
#

oder ich versuchs mal

#

@tawdry leaf ohne interaction würde es nicht gehen lol

tawdry leaf
#

Oh doch 👀

solid ingot
#

du musst bot rausmachen, nicht interaction

tawdry leaf
#

🤔🤔

solid ingot
#

callback hat keinen bot parameter

tawdry leaf
#

Aso ja weil so mag er sonst eine Interaktion 😅

indigo sapphire
tawdry leaf
#

Er definiert den Channel und der Bug soll auch nicht in den Kanal sein bei den er den cmd used

#

@urban glen geht es nun

devout orchidBOT
#
Keks Moderation

Ich bin ein cooler Moderation Bot, der viele Features bietet und die Moderatoren entlastet.

solid ingot
#

wenn du bot rausnimmst, kannst du bot natürlich auch nicht verwenden

urban glen
#

also geht dann die variante nicht um den channel zu bekommen?

solid ingot
#

entweder musst du den bot an die modal klasse übergeben, oder du benutzt interaction.client

paper iris
#

könnte ich mit diesem free server mysql für meinen bot nutzen?

urban glen
#
    async def callback(self, interaction):
        if self.values[0] == "Information":
            information = discord.Embed(
                title="Information",
                description="Information Befehle lol",
                color=0x5865F2
            )
            await interaction.message.edit(embed=information)
        elif self.values[0] == "Settings & Setups":
            settings_und_setups = discord.Embed(
                title="Settings & Setups",
                description="Settings & Setups Befehle lol",
                color=0x5865F2
            )
            await interaction.message.edit(embed=settings_und_setups)
        elif self.values[0] == "Moderation":
            moderation = discord.Embed(
                title="Moderation",
                description="Moderation Befehle lol",
                color=0x5865F2
            )
            await interaction.message.edit(embed=moderation)
        elif self.values[0] == "Fun":
            fun = discord.Embed(
                title="Fun",
                description="Fun Befehle lol",
                color=0x5865F2
            )
            await interaction.message.edit(embed=fun)

Wie mache ich halt dass wenn ich z.B. im Select Menü "Fun" gewählt habe dass aktuelle Embed zu dem Fun Embed bearbeitet wird?

#

So klappt es bei mir nicht, nur Settings & Setups funktioniert, dann nichts mehr

paper iris
#

kannst du bitte >>"""py """<<

#

benutzen

solid ingot
serene ermine
paper iris
#

das ist ja ein server der mysql unterstützt

serene ermine
#

Ne denke nicht weil ist ja nur ne Datenbank ig

paper iris
#

dann kann ich auf dem server ja dann sachen für meinen bot speichern oder?

paper iris
serene ermine
paper iris
#

k

serene ermine
# paper iris k

Du hast ja nur nen Zugang zu ner Datenbank aber nicht direkt zu nem Server

paper iris
#

aber der ist ausgelegt für webhosting nicht für "anderes" hosting

serene ermine
paper iris
#

des mysql teil da ist eig für die website da drauf gedacht

serene ermine
#

Probieren geht über studieren

tawdry leaf