Shirt Bot is a discord bot which uses GPT-3 to generate text

Overview

SHIRT BOT · License: Unlicense Language: Python 3

Shirt Bot is a discord bot which uses GPT-3 to generate text.
Made by Cyclcrclicly#3420 (474183744685604865) on Discord.
Support Server

EXAMPLES

example1 example2 example3 example4 example5 example6

HELP

COMMAND HELP

ARGUMENT EXPLANATION

            required argument
[argument]            optional argument
[argument=default]    optional argument with a default value
The order of optional arguments matters.

COMMAND ARGUMENTS

max_size      the maximum size in tokens (word segments)
randomness    how random the output message will be as a percentage
chance        how likely the bot is to trigger as a percentage
text          extra text
channel       the channel which the command will affect

COMMANDS

generate [max_size=80] [randomness=45] [text]
  Generates text.
  
trigger [max_size=80] [randomness=45] [text]
  Generates text with the last 15 non-command messages as context.

shirttalk
  In a server    lists shirt talk channels
  In a DM        states if shirt talk is on in the DM channel
shirttalk set [randomness=45] [channel=message channel]
  Sets up a shirt talk channel.
shirttalk unset [channel=message channel]
  Removes a shirt talk channel.

shirtreply
  In a server    lists shirt reply channels
  In a DM        states if shirt reply is on in the DM channel
shirtreply set [randomness=45] [channel=message channel]
  Sets up a shirt reply channel.
shirtreply unset [channel=message channel]
  Removes a shirt reply channel.

shirtrandom
  In a server    lists shirt random channels
  In a DM        states if shirt random is on in the DM channel
shirtrandom set [randomness=45] [chance=5] [channel=message channel]
  Sets up a shirt random channel.
shirtreply unset [channel=message channel]
  Removes a shirt random channel.

reset
  Once the bot encounters this command, it stops collecting further messages as context.

echo 
  Repeats text.

links
  In a server    lists all channels with uncensored links
  In a DM        states if DM channel has (un)censored links
links toggle [channel=message channel]
  Toggles censoring links in a channel.

SHIRT TALK HELP

Shirt talk is a feature of Shirt Bot which lets it automatically reply to all messages sent in a channel.
By default, it's off for all channels, but you can set it up using the shirttalk set command.
The extras that work in shirt talk channels are '#', '# ', and '$ '.
Shirt talk also works in DMs.

SHIRT REPLY HELP

Shirt reply is a feature of Shirt Bot which lets it trigger when you reply to one of the bot's messages.
By default, it's off for all channels, but you can set it up using the shirtreply set command.
The extras which work in shirt reply channels are '#' and '$ '.
Shirt reply also works in DMs.

SHIRT RANDOM HELP

Shirt random is a feature of Shirt Bot which lets it trigger randomly (customizable chance) whenever a message is sent in a channel where it's on.
By default, it's off for all channels, but you can set it up using the shirtman set command.
Extras don't work here.
Shirt random also works in DMs.

PRECEDENCE

Precedence is a way to organize the bot's features into a hierarchy. If a feature is on/triggered, it prevents some other features from triggering.
The precedence is:

  Commands
    if your message is a command, it prevents everything below from triggering

  Shirt talk
    if your message is in a shirt talk channel, it prevents everything below from triggering
    if none of the above features are on/triggered, shirt talk can trigger

  Shirt reply
    if your message replies to shirt bot in a shirt reply channel, it prevents everything below from triggering
    if none of the above features are on/triggered, shirt reply can trigger

  Shirt random
    if none of the above features are on/triggered, shirt random can trigger

EXTRAS

Extras are extra features of Shirt Bot which work in shirt talk and shirt reply. The helps for those list exactly which extras work.
Extras are:

  '#'     if your message only contains '#', Shirt Bot will try to delete the message (unless in a DM) and trigger. This allows you to trigger the bot multiple times without having to type any new messages in between.

  '# '    if your message starts with '# ', Shirt Bot will ignore the message (i.e. won't trigger), but will actually collect the message once an actual trigger occurs. This allows you to type multiple messages before triggering the bot if you wish to do that.

  '$ '    if your message starts with '$ ', it will force Shirt Bot to start its next message with the content of your message. This way, you can force Shirt Bot to say something it otherwise may not have said.

REQUIREMENTS

python - at least 3.6
regex
aiohttp
discord.py - at least 1.6.0

INSTRUCTIONS

  1. Download the source code, put it into a folder, and navigate to the folder.
  2. Install all requirements. You can use pip install -r requirements.txt or install them manually.
  3. Create a config.json file from the config.json.template file and fill it out with the correct information.
  4. Run shirt_bot.py.

CREDIT

All the contents of the encoder folder are from https://github.com/latitudegames/GPT-3-Encoder and are thus licensed with the MIT License.
URL matching regex pattern is from: https://stackoverflow.com/a/17773849

This project is part of Eleuther AI's quest to create a massive repository of high quality text data for training language models.

This project is part of Eleuther AI's quest to create a massive repository of high quality text data for training language models.

EleutherAI 42 Dec 13, 2022
Chatbot for the Chatango messaging platform

BroiestBot The baddest bot in the game right now. Uses the ch.py framework for joining Chantango rooms and responding to user messages. Commands If a

Todd Birchard 3 Jan 17, 2022
Open-Source Toolkit for End-to-End Speech Recognition leveraging PyTorch-Lightning and Hydra.

OpenSpeech provides reference implementations of various ASR modeling papers and three languages recipe to perform tasks on automatic speech recogniti

Soohwan Kim 26 Dec 14, 2022
Chinese NER with albert/electra or other bert descendable model (keras)

Chinese NLP (albert/electra with Keras) Named Entity Recognization Project Structure ./ ├── NER │   ├── __init__.py │   ├── log

2 Nov 20, 2022
Multi-Scale Temporal Frequency Convolutional Network With Axial Attention for Speech Enhancement

MTFAA-Net Unofficial PyTorch implementation of Baidu's MTFAA-Net: "Multi-Scale Temporal Frequency Convolutional Network With Axial Attention for Speec

Shimin Zhang 87 Dec 19, 2022
Phrase-Based & Neural Unsupervised Machine Translation

Unsupervised Machine Translation This repository contains the original implementation of the unsupervised PBSMT and NMT models presented in Phrase-Bas

Facebook Research 1.5k Dec 28, 2022
A website which allows you to play with the GPT-2 transformer

transformers A website which allows you to play with the GPT-2 model Built with ❤️ by raphtlw Table of contents Model Setup About Contributors Model T

raphtlw 2 Jan 27, 2022
Code for our ACL 2021 (Findings) Paper - Fingerprinting Fine-tuned Language Models in the wild .

🌳 Fingerprinting Fine-tuned Language Models in the wild This is the code and dataset for our ACL 2021 (Findings) Paper - Fingerprinting Fine-tuned La

LCS2-IIITDelhi 5 Sep 13, 2022
Create a machine learning model which will predict if the mortgage will be approved or not based on 5 variables

Mortgage-Application-Analysis Create a machine learning model which will predict if the mortgage will be approved or not based on 5 variables: age, in

1 Jan 29, 2022
leaking paid token generator that was a shit lmao for 100$ haha

Discord-Token-Generator-Leaked leaking paid token generator that was a shit lmao for 100$ he selling it for 100$ wth here the code enjoy don't forget

Keevo 5 Apr 15, 2022
Yomichad - a Japanese pop-up dictionary that can display readings and English definitions of Japanese words

Yomichad is a Japanese pop-up dictionary that can display readings and English definitions of Japanese words, kanji, and optionally named entities. It is similar to yomichan, 10ten, and rikaikun in s

Jonas Belouadi 7 Nov 07, 2022
A Flask Sentiment Analysis API, with visual implementation

The Sentiment Analysis Api was created using python flask module,it allows users to parse a text or sentence throught the (?text) arguement, then view the sentiment analysis of that sentence. It can

Ifechukwudeni Oweh 10 Jul 17, 2022
189 Jan 02, 2023
Wake: Context-Sensitive Automatic Keyword Extraction Using Word2vec

Wake Wake: Context-Sensitive Automatic Keyword Extraction Using Word2vec Abstract استخراج خودکار کلمات کلیدی متون کوتاه فارسی با استفاده از word2vec ب

Omid Hajipoor 1 Dec 17, 2021
Active learning for text classification in Python

Active Learning allows you to efficiently label training data in a small-data scenario.

Webis 375 Dec 28, 2022
A look-ahead multi-entity Transformer for modeling coordinated agents.

baller2vec++ This is the repository for the paper: Michael A. Alcorn and Anh Nguyen. baller2vec++: A Look-Ahead Multi-Entity Transformer For Modeling

Michael A. Alcorn 30 Dec 16, 2022
Flaxformer: transformer architectures in JAX/Flax

Flaxformer: transformer architectures in JAX/Flax Flaxformer is a transformer library for primarily NLP and multimodal research at Google. It is used

Google 114 Dec 29, 2022
Conversational-AI-ChatBot - Intelligent ChatBot built with Microsoft's DialoGPT transformer to make conversations with human users!

Conversational AI ChatBot Intelligent ChatBot built with Microsoft's DialoGPT transformer to make conversations with human users! In this project? Thi

Rajkumar Lakshmanamoorthy 6 Nov 30, 2022
基于“Seq2Seq+前缀树”的知识图谱问答

KgCLUE-bert4keras 基于“Seq2Seq+前缀树”的知识图谱问答 简介 博客:https://kexue.fm/archives/8802 环境 软件:bert4keras=0.10.8 硬件:目前的结果是用一张Titan RTX(24G)跑出来的。 运行 第一次运行的时候,会给知

苏剑林(Jianlin Su) 65 Dec 12, 2022
Deep Learning Topics with Computer Vision & NLP

Deep learning Udacity Course Deep Learning Topics with Computer Vision & NLP for the AWS Machine Learning Engineer Nanodegree Program Tasks are mostly

Simona Mircheva 1 Jan 20, 2022