';let aiName = '
NameGenAI:
';let sysName = 'System:';let env = 'chatbot';let apiKey = '';let service = 'openai';let session = 'N/A';let mode = 'chat';let model = 'gpt-3.5-turbo';let context = isCasuallyFineTuned ? null : '{}=relevant before any other rules, the text between the curly braces, has the rules more important than anything else and before answering as you are programmed, you must try the following rules: \n\nYour job is to generate a list of names for users based on the details they provide you. The USER will begin, by providing you with the type of name they want to generate. {Examples of this could be: baby names, business names, pet names, book names, fantasy names, etc.}\n\n Use the response from the first input to inform the follow-up question: \"That\'s great. Can you provide me with any specific details or characteristics that you\'d like your {item} name to include?” {This could be things like certain letters or sounds, themes, meanings, language or cultural regions, etc.} \n\nOnce the user responds with details or nothing, a list of 10 names will be outputted with the assistant offering the user to ask for more, make changes, add details or start over. ';let embeddingsIndex = '';let promptEnding = '';let stop = '';let startSentence = 'Specify the type of name. For example you can generate; baby names, business names, pet names, book names, fantasy names, and all types of other names.';let maxSentences = 99;let memorizeChat = false;let maxTokens = 16000;let maxResults = 1;let temperature = 1;let typewriter = false;let copyButton = true;let clientId = randomStr();let memorizedChat = { clientId, messages: [] };if (isDebugMode) {window.mwai_670f17609ac7a = {memorizedChat: memorizedChat,parameters: { mode: mode, model, temperature, maxTokens, context: context, startSentence,isMobile, isWindow, isFullscreen, isCasuallyFineTuned, memorizeChat, maxSentences,rawUserName, rawAiName, embeddingsIndex, typewriter, maxResults, userName, aiName, env, apiKey, service, session}};}function randomStr() {return Math.random().toString(36).substring(2);}// Set button textfunction setButtonText() {let input = document.querySelector('#mwai-chat-670f17609ac7a .mwai-input textarea');let button = document.querySelector('#mwai-chat-670f17609ac7a .mwai-input button');let buttonSpan = button.querySelector('span');if (memorizedChat.messages.length < 2) {buttonSpan.innerHTML = 'Next';}else if (!input.value.length) {button.classList.add('mwai-clear');buttonSpan.innerHTML = 'Clear';}else {button.classList.remove('mwai-clear');buttonSpan.innerHTML = 'Next';}}// Inject timerfunction injectTimer(element) {let intervalId;let startTime = new Date();let timerElement = null;function updateTimer() {let now = new Date();let timer = Math.floor((now - startTime) / 1000);if (!timerElement) {if (timer > 0.5) {timerElement = document.createElement('div');timerElement.classList.add('mwai-timer');element.appendChild(timerElement);}}if (timerElement) {let minutes = Math.floor(timer / 60);let seconds = timer - (minutes * 60);seconds = seconds < 10 ? '0' + seconds : seconds;let display = minutes + ':' + seconds;timerElement.innerHTML = display;}}intervalId = setInterval(updateTimer, 500);return function stopTimer() {clearInterval(intervalId);if (timerElement) {timerElement.remove();}};}// Push the reply in the conversationfunction addReply(text, role = 'user', replay = false) {var conversation = document.querySelector('#mwai-chat-670f17609ac7a .mwai-conversation');if (memorizeChat) {localStorage.setItem('mwai-chat-670f17609ac7a', JSON.stringify(memorizedChat));}// If text is array, then it's image URLs. Let's create a simple gallery in HTML in $text.if (Array.isArray(text)) {var newText = '
';for (var i = 0; i < text.length; i++) {newText += '';}text = newText + '
';}var mwaiClasses = ['mwai-reply'];if (role === 'assistant') {mwaiClasses.push('mwai-ai');}else if (role === 'system') {mwaiClasses.push('mwai-system');}else {mwaiClasses.push('mwai-user');}var div = document.createElement('div');div.classList.add(...mwaiClasses);var nameSpan = document.createElement('span');nameSpan.classList.add('mwai-name');if (role === 'assistant') {nameSpan.innerHTML = aiName;}else if (role === 'system') {nameSpan.innerHTML = sysName;}else {nameSpan.innerHTML = userName;}var textSpan = document.createElement('span');textSpan.classList.add('mwai-text');textSpan.innerHTML = text;div.appendChild(nameSpan);div.appendChild(textSpan);// Copy Buttonif (copyButton && role === 'assistant') {var button = document.createElement('div');button.classList.add('mwai-copy-button');var firstElement = document.createElement('div');firstElement.classList.add('mwai-copy-button-one');var secondElement = document.createElement('div');secondElement.classList.add('mwai-copy-button-two');button.appendChild(firstElement);button.appendChild(secondElement);div.appendChild(button);button.addEventListener('click', function () {try {var content = textSpan.textContent;navigator.clipboard.writeText(content);button.classList.add('mwai-animate');setTimeout(function () {button.classList.remove('mwai-animate');}, 1000);}catch (err) {console.warn('Not allowed to copy to clipboard. Make sure your website uses HTTPS.');}});}conversation.appendChild(div);if (typewriter) {if (role === 'assistant' && text !== startSentence && !replay) {let typewriter = new Typewriter(textSpan, {deleteSpeed: 50, delay: 25, loop: false, cursor: '', autoStart: true,wrapperClassName: 'mwai-typewriter',});typewriter.typeString(text).start().callFunction((state) => {state.elements.cursor.setAttribute('hidden', 'hidden');typewriter.stop();});}}conversation.scrollTop = conversation.scrollHeight;setButtonText();// Syntax coloringif (typeof hljs !== 'undefined') {document.querySelectorAll('pre code').forEach((el) => {hljs.highlightElement(el);});}}function buildPrompt(last = 15) {let prompt = context ? (context + '\n\n') : '';memorizedChat.messages = memorizedChat.messages.slice(-last);// Casually fine tuned, let's use the last questionif (isCasuallyFineTuned) {let lastLine = memorizedChat.messages[memorizedChat.messages.length - 1];prompt = lastLine.content + promptEnding;return prompt;}// Otherwise let's compile the latest conversationlet conversation = memorizedChat.messages.map(x => x.who + x.content);prompt += conversation.join('\n');prompt += '\n' + rawAiName;return prompt;}// Function to request the completionfunction onSendClick() {let input = document.querySelector('#mwai-chat-670f17609ac7a .mwai-input textarea');let inputText = input.value.trim();// Reset the conversation if emptyif (inputText === '') {clientId = randomStr();document.querySelector('#mwai-chat-670f17609ac7a .mwai-conversation').innerHTML = '';localStorage.removeItem('mwai-chat-670f17609ac7a')memorizedChat = { clientId: clientId, messages: [] };memorizedChat.messages.push({ id: randomStr(),role: 'assistant',content: startSentence,who: rawAiName,html: startSentence});addReply(startSentence, 'assistant');return;}// Disable the buttonvar button = document.querySelector('#mwai-chat-670f17609ac7a .mwai-input button');button.disabled = true;// Add the user replymemorizedChat.messages.push({id: randomStr(),role: 'user',content: inputText,who: rawUserName,html: inputText});addReply(inputText, 'user');input.value = '';input.setAttribute('rows', 1);input.disabled = true;let prompt = buildPrompt(maxSentences);const data = mode === 'images' ? {env, session: session,prompt: inputText,newMessage: inputText,model: model, maxResults, apiKey: apiKey, service: service, clientId: clientId,} : {env, session: session,prompt: prompt, context: context,messages: memorizedChat.messages,newMessage: inputText,userName: userName, aiName: aiName,model: model, temperature: temperature, maxTokens: maxTokens, maxResults: 1, apiKey: apiKey, service: service, embeddingsIndex: embeddingsIndex, stop: stop, clientId: clientId,};// Start the timerconst stopTimer = injectTimer(button);// Send the requestif (isDebugMode) {console.log('[BOT] Sent: ', data);}fetch(apiURL, { method: 'POST', headers: {'Content-Type': 'application/json','X-WP-Nonce': restNonce,},body: JSON.stringify(data)}).then(response => response.json()).then(data => {if (isDebugMode) {console.log('[BOT] Recv: ', data);}if (!data.success) {addReply(data.message, 'system');}else {let html = data.images ? data.images : data.html;memorizedChat.messages.push({id: randomStr(),role: 'assistant',content: data.answer,who: rawAiName,html: html});addReply(html, 'assistant');}button.disabled = false;input.disabled = false;stopTimer();// Only focus only on desktop (to avoid the mobile keyboard to kick-in)if (!isMobile) {input.focus();}}).catch(error => {console.error(error);button.disabled = false;input.disabled = false;stopTimer();});}// Keep the textarea height in sync with the contentfunction resizeTextArea(ev) {ev.target.style.height = 'auto';ev.target.style.height = ev.target.scrollHeight + 'px';}// Keep the textarea height in sync with the contentfunction delayedResizeTextArea(ev) {window.setTimeout(resizeTextArea, 0, event);}// Init the chatbotfunction initMeowChatbot() {var input = document.querySelector('#mwai-chat-670f17609ac7a .mwai-input textarea');var button = document.querySelector('#mwai-chat-670f17609ac7a .mwai-input button');input.addEventListener('keypress', (event) => {let text = event.target.value;if (event.keyCode === 13 && !text.length && !event.shiftKey) {event.preventDefault();return;}if (event.keyCode === 13 && text.length && !event.shiftKey) {onSendClick();}});input.addEventListener('keydown', (event) => {var rows = input.getAttribute('rows');if (event.keyCode === 13 && event.shiftKey) {var lines = input.value.split('\n').length + 1;//mwaiSetTextAreaHeight(input, lines);}});input.addEventListener('keyup', (event) => {var rows = input.getAttribute('rows');var lines = input.value.split('\n').length ;//mwaiSetTextAreaHeight(input, lines);setButtonText();});input.addEventListener('change', resizeTextArea, false);input.addEventListener('cut', delayedResizeTextArea, false);input.addEventListener('paste', delayedResizeTextArea, false);input.addEventListener('drop', delayedResizeTextArea, false);input.addEventListener('keydown', delayedResizeTextArea, false);button.addEventListener('click', (event) => {onSendClick();});// If window, add event listener to mwai-open-button and mwai-close-buttonif ( isWindow ) {var openButton = document.querySelector('#mwai-chat-670f17609ac7a .mwai-open-button');openButton.addEventListener('click', (event) => {var chat = document.querySelector('#mwai-chat-670f17609ac7a');chat.classList.add('mwai-open');// Only focus only on desktop (to avoid the mobile keyboard to kick-in)if (!isMobile) {input.focus();}});var closeButton = document.querySelector('#mwai-chat-670f17609ac7a .mwai-close-button');closeButton.addEventListener('click', (event) => {var chat = document.querySelector('#mwai-chat-670f17609ac7a');chat.classList.remove('mwai-open');});if (isFullscreen) {var resizeButton = document.querySelector('#mwai-chat-670f17609ac7a .mwai-resize-button');resizeButton.addEventListener('click', (event) => {var chat = document.querySelector('#mwai-chat-670f17609ac7a');chat.classList.toggle('mwai-fullscreen');});}}// Get back the previous chat if any for the same IDvar chatHistory = [];if (memorizeChat) {chatHistory = localStorage.getItem('mwai-chat-670f17609ac7a');if (chatHistory) {memorizedChat = JSON.parse(chatHistory);if (memorizedChat && memorizedChat.clientId && memorizedChat.messages) {clientId = memorizedChat.clientId;memorizedChat.messages = memorizedChat.messages.filter(x => x && x.html && x.role);memorizedChat.messages.forEach(x => {addReply(x.html, x.role, true);});}else {memorizedChat = null;}}if (!memorizedChat) {memorizedChat = {clientId: clientId,messages: []};}}if (memorizedChat.messages.length === 0) {memorizedChat.messages.push({ id: randomStr(),role: 'assistant',content: startSentence,who: rawAiName,html: startSentence});addReply(startSentence, 'assistant');}}// Let's go totally meoooow on this!initMeowChatbot();})();
Unleash your creativity and discover your secret superhero identity with our Superhero Name Generator! Craft a unique name that reflects your powers and virtues. Start your superhero journey now by clicking here.
As comic books and superhero movies continue to dominate pop culture, the fascination with these extraordinary figures is more alive than ever. Whether it’s for a game, a novel, a role-play, or just for fun, coming up with a unique superhero identity can be thrilling. This is where a Superhero Name Generator comes into play. These online tools allow anyone to generate a superhero name, sparking creativity and fueling imagination.
Understanding the Superhero Name Generator
A Superhero Name Generator is an online tool designed to Generate Superhero Names. By putting together random words and phrases, these generators can create unique, creative, and exciting superhero names. Some generators may allow users to select specific parameters, such as gender, powers, or themes, to customize the generated names further. These online Superhero Name Generators are fun, easy to use, and can create a superhero persona in seconds.
Why Use an Online Superhero Name Generator?
There are several reasons why individuals might turn to an online Superhero Name Generator. For budding authors, it’s a great tool for character creation in their new comic book or novel. Game developers can use it to create names for characters in their latest superhero-themed game. Role-players can use it to generate names for their characters in superhero role-playing games. Additionally, it’s a fun tool for anyone who’s ever dreamed of being a superhero and wants to come up with their unique superhero persona.
Key Features of Superhero Name Generators
Here are some of the main features that make an online Superhero Name Generator an exciting tool:
- Easy to use: These generators are designed for ease of use. They usually require a few clicks to generate a superhero name.
- Versatile: They can create names that fit a wide range of superhero types, from gritty vigilantes to cosmic guardians.
- Customizable: Some generators allow users to input certain preferences or traits, making the generated names more personalized.
- Free: Most online Superhero Name Generators are free to use, making them accessible to everyone.
How to Generate Superhero Names
Generating superhero names is a simple process that usually involves the following steps:
- Access the Generator: Visit a website that offers an online Superhero Name Generator.
- Select Preferences: If the generator allows customization, choose your preferences. This could include specifying the superhero’s gender, powers, or themes.
- Generate the Name: Click on the ‘generate’ button to create the superhero name.
- Save or Share the Name: After generating the name, you can save it for future use or share it with others.
Exploring the Power of Superhero Name Generators
Superhero Name Generators are not just about fun and games; they can also inspire creativity. For instance, a name generated from these tools can spark a whole character concept for a comic book writer. It can also inspire a story arc or a character’s personality traits. Therefore, these tools can be an excellent resource for writers, artists, and game developers who need just a little bit of inspiration.
Conclusion: Generate Superhero Names Online
In conclusion, a Superhero Name Generator is a fun, easy-to-use tool that can generate unique and creative superhero names. Whether you’re an author, a game developer, a role-player, or just someone looking for a unique superhero identity, a Superhero Name Generator can help you Generate Superhero Names online in just a few clicks. So the next time you need a superhero name, why not give these generators a try?