m Reverted edit by NiggerMurderer1488 (talk) to last revision by 5.14.150.156
Tags: Rollback Mobile edit Mobile web edit Advanced mobile edit
Edward (talk | contribs)
updated with the latest information
 
Line 6: Line 6:
| prefix = Mention
| prefix = Mention
| owner = [[User:Edward|Edward]]
| owner = [[User:Edward|Edward]]
| language = Python
| language = node.js, Python
| sourcecode = https://github.com/Edward205/markov-discord-bot (old version)
| sourcecode = https://github.com/Edward205/markov-discord-bot (old version)
| invitelink = Not available to public
| invitelink = Not available to public
Line 16: Line 16:


== Commands ==
== Commands ==
The following refers to the latest version of the rietenpetardat as of 2nd of October 2023.  
There are no publicly available commands in the latest version.
 
* '''/intreaba''' <question> - Query a language model instructed to answer questions
* '''/gptconfig''' - Prints the current configuration of the GPT model
* '''/identitate''' <identity> - Sets the identity to the paramater (only for moderators)
* '''/parametru''' - Sets a paramater from the list below (only for moderators)
** '''modgen''' - Selects the way which a message is generated
*** '''Organic''' - Text is generated until a response from the identity is generated
*** '''Forțat''' - A response belonging to the identity is appended to the next line, leaving the AI to forcefully generate a message from that identity
** '''temperatura'''
*** A floating point number indicating the temperature (randomness) of the generation
** '''top_k'''
*** The first top_k tokens, sorted in order of appearances
** '''seed'''
*** An integer number used for generating random numbers for the generation
* '''/reinitializare''' - Reinitialises the model. Necessary when changing some options (only for moderators)
* '''/resetmemorie''' - Clears the memory of past messages (only for moderators)


== Development history ==
== Development history ==
Line 65: Line 49:


=== The return ===
=== The return ===
Since the shutdown, Edward has been searching for a way to train an AI which can be fully self-hosted. An attempt has been made to train a language model using [https://marian-nmt.github.io/ marian-nmt], but it was not successful. On 18th of July he began experimenting with [https://github.com/karpathy/nanoGPT nanoGPT] and he was able to train a model from scratch on data from past chats from the OKPR Discord server. The next day, a bare-bones but operational version was finished and released for a few hours on the OKPR Discord server for testing.  
Since the shutdown, Edward has been searching for a way to train an AI which can be fully self-hosted. An attempt has been made to train a language model using [https://marian-nmt.github.io/ marian-nmt], but it was not successful. On 18th of July he began experimenting with [https://github.com/karpathy/nanoGPT nanoGPT] and he was able to train a model from scratch on data from past chats from the OKPR Discord server. The next day, a bare-bones but operational version was finished and released for a few hours on the OKPR Discord server for testing. This version was active until the 28th of December 2023.
 
The Discord bot was developed in Python using the [https://pycord.dev/ Pycord] library. Development testing of the bot is done on a private server.
 
=== April 1st incident ===
On April 1st 2025, the custom LLM version was re-enabled and it was set to respond to every single message sent on the server. Edward announced this by saying:<blockquote>@everyone, I would like to announce that I have sold the server to @rieten. now the entire chat belongs to him, so please welcome him. <ref>{{Cite message|author=bobubitul|date=April 1, 2025|content=@everyone va anunt ca am vandut serverul lui @rieten . acum tot chatul este al lui, va rog sa ii urati bun venit|server=OKPR|channel=anunțuri|link=https://discord.com/channels/1013121756766142555/1013132110644650065/1356378391456125038}}</ref></blockquote>This caused massive chaos for a day, as the bot spammed seemingly nonsensical messages. This event ended that night after a message sent from the bot's account:<blockquote>@ping inutil I am too retarded for owner okrp. edward is my creator and he will shut me down. I am the best chatbot in the world. maybe world one day I will rule
 
-- EXPERIMENT ENDED --
 
-- AI DISCONNECTED --<ref>{{Cite message|author=Ortobebop#4964|date=April 1, 2025|content=<@&1013209767306612816> eu prea sunt retardat pentru ouner okrp. edward este creatorul meu ma va inchide. eu sunt cel mai bun chatbot din lume. poate lume eu voi candva stapani
 
`-- EXPERIMENT ÎNCHEIAT --`
`-- AI DECONECTAT --`|server=OKPR|channel=anunțuri|link=https://discord.com/channels/1013121756766142555/1013132110644650065/1356725040850145382}}</ref></blockquote>
 
=== Current latest version ===
[[File:Rietenpetardat's machine.png|thumb|rietenpetardat's "home"]]
The bot was rewritten from scratch, implementing a more stable architecture using node.js and Python. It now features an NSFW image detector to aid with moderation, among other automated moderation tools. As local LLM technology has improved, the chatbot model has now been replaced with Gemma 3 4b which can provide good quality and mostly coherent responses to users. Everything is processed locally in order to protect user's privacy.


The Discord bot is now developed in Python using the [https://pycord.dev/ Pycord] library. Development testing of the bot is done on a private server.  
This version was released on the 5th of May 2025, and is still active having received updates such as giving the bot the ability to view images in the chat.


== Technical details and research ==
== Technical details and research ==