Skip to content
Zachi edited this page Mar 31, 2023 · 1 revision

🇺🇸 English

To use the ZMCBot, several steps must be taken. First, the code must be downloaded and unpacked into a folder named ZMCBot/. Then, the necessary Python modules must be installed using the command pip install -r requirements.txt.

Next, the OpenAI code must be added to the file .openaitoken, and the Discord Bot token must be added to the file .token. To do this, navigate to the OpenAI website (https://platform.openai.com/account/api-keys) and copy the appropriate code. Paste it into the file .openaitoken. Then, navigate to the Discord website (https://discord.com/developers/applications), select your own Application, navigate to Bot, and copy the Token. Paste it into the file .token.

If desired, you can also set the variable channel_id to the desired Channel ID in the main.py file, for example for the Images channel. To do this, open the main.py file and look for the corresponding variable, which is usually located at the beginning of the script. Set the Channel ID to the desired value and save the changes.

Finally, run the command python3 main.py in a shell to start the ZMCBot.

🇩🇪 German

Um den ZMCBot zu nutzen, müssen zunächst einige Schritte durchgeführt werden. Zunächst muss der Code heruntergeladen und in einem Ordner mit dem Namen ZMCBot/ entpackt werden. Anschließend müssen die benötigten Python-Module installiert werden. Hierfür verwendet man den Befehl pip install -r requirements.txt.

Als nächstes muss der OpenAI Code in die Datei .openaitoken und der Discord Bot Token in die Datei .token eingetragen werden. Hierfür navigiert man zuerst zur Webseite von OpenAI (https://platform.openai.com/account/api-keys) und kopiert den entsprechenden Code. Diesen fügt man dann in die Datei .openaitoken ein. Als nächstes navigiert man zur Webseite von Discord (https://discord.com/developers/applications) und wählt die eigene Application aus. Dort navigiert man zu Bot und kopiert den Token. Diesen fügt man dann in die Datei .token ein.

Falls gewünscht, kann man in der Datei main.py die Variable channel_id auf die gewünschte Channel-ID setzen, zum Beispiel für den Bilderkanal. Hierfür öffnet man die Datei main.py und sucht nach der entsprechenden Variablen. Diese findet man in der Regel am Anfang des Skripts. Man setzt die Channel-ID dann einfach auf den gewünschten Wert und speichert die Änderungen ab. Anschließend muss man den ZMCBot erneut starten, damit die Änderungen übernommen werden.

Zuletzt muss man eine Shell öffnen und den Befehl python3 main.py ausführen, um den ZMCBot zu starten.

Clone this wiki locally