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

Question answering app is used to answer for a user given question from user given text.

Question answering app is used to answer for a user given question from user given text.It is created using HuggingFace's transformer pipeline and streamlit python packages.

Siva Prakash 3 Apr 05, 2022
L3Cube-MahaCorpus a Marathi monolingual data set scraped from different internet sources.

L3Cube-MahaCorpus L3Cube-MahaCorpus a Marathi monolingual data set scraped from different internet sources. We expand the existing Marathi monolingual

21 Dec 17, 2022
Google and Stanford University released a new pre-trained model called ELECTRA

Google and Stanford University released a new pre-trained model called ELECTRA, which has a much compact model size and relatively competitive performance compared to BERT and its variants. For furth

Yiming Cui 1.2k Dec 30, 2022
nlpcommon is a python Open Source Toolkit for text classification.

nlpcommon nlpcommon, Python Text Tool. Guide Feature Install Usage Dataset Contact Cite Reference Feature nlpcommon is a python Open Source

xuming 3 May 29, 2022
A very simple framework for state-of-the-art Natural Language Processing (NLP)

A very simple framework for state-of-the-art NLP. Developed by Humboldt University of Berlin and friends. IMPORTANT: (30.08.2020) We moved our models

flair 12.3k Dec 31, 2022
🌐 Translation microservice powered by AI

Dot Translate 🌐 A microservice for quick and local translation using A.I. This service starts a local webserver used for neural machine translation.

Dot HQ 48 Nov 22, 2022
Contains analysis of trends from Fitbit Dataset (source: Kaggle) to see how the trends can be applied to Bellabeat customers and Bellabeat products

Contains analysis of trends from Fitbit Dataset (source: Kaggle) to see how the trends can be applied to Bellabeat customers and Bellabeat products.

Leah Pathan Khan 2 Jan 12, 2022
Abhijith Neil Abraham 2 Nov 05, 2021
keras implement of transformers for humans

keras implement of transformers for humans

苏剑林(Jianlin Su) 4.8k Jan 03, 2023
Python wrapper for Stanford CoreNLP tools v3.4.1

Python interface to Stanford Core NLP tools v3.4.1 This is a Python wrapper for Stanford University's NLP group's Java-based CoreNLP tools. It can eit

Dustin Smith 610 Sep 07, 2022
Google AI 2018 BERT pytorch implementation

BERT-pytorch Pytorch implementation of Google AI's 2018 BERT, with simple annotation BERT 2018 BERT: Pre-training of Deep Bidirectional Transformers f

Junseong Kim 5.3k Jan 07, 2023
SAVI2I: Continuous and Diverse Image-to-Image Translation via Signed Attribute Vectors

SAVI2I: Continuous and Diverse Image-to-Image Translation via Signed Attribute Vectors [Paper] [Project Website] Pytorch implementation for SAVI2I. We

Qi Mao 44 Dec 30, 2022
Conditional probing: measuring usable information beyond a baseline

Conditional probing: measuring usable information beyond a baseline

John Hewitt 20 Dec 15, 2022
Telegram AI chat bot written in Python using Pyrogram

Aurora_Al Just another Telegram AI chat bot written in Python using Pyrogram. A public running instance can be found on telegram as @AuroraAl. Require

♗CσNϙUҽRσR_MҽSƙEƚҽҽR 1 Oct 31, 2021
Clone a voice in 5 seconds to generate arbitrary speech in real-time

This repository is forked from Real-Time-Voice-Cloning which only support English. English | 中文 Features 🌍 Chinese supported mandarin and tested with

Weijia Chen 25.6k Jan 06, 2023
Simple Annotated implementation of GPT-NeoX in PyTorch

Simple Annotated implementation of GPT-NeoX in PyTorch This is a simpler implementation of GPT-NeoX in PyTorch. We have taken out several optimization

labml.ai 101 Dec 03, 2022
A python package for deep multilingual punctuation prediction.

This python library predicts the punctuation of English, Italian, French and German texts. We developed it to restore the punctuation of transcribed spoken language.

Oliver Guhr 27 Dec 22, 2022
Named-entity recognition using neural networks. Easy-to-use and state-of-the-art results.

NeuroNER NeuroNER is a program that performs named-entity recognition (NER). Website: neuroner.com. This page gives step-by-step instructions to insta

Franck Dernoncourt 1.6k Dec 27, 2022
Code for the paper TestRank: Bringing Order into Unlabeled Test Instances for Deep Learning Tasks

TestRank in Pytorch Code for the paper TestRank: Bringing Order into Unlabeled Test Instances for Deep Learning Tasks by Yu Li, Min Li, Qiuxia Lai, Ya

3 May 19, 2022
Twitter-Sentiment-Analysis - Twitter sentiment analysis for india's top online retailers(2019 to 2022)

Twitter-Sentiment-Analysis Twitter sentiment analysis for india's top online retailers(2019 to 2022) Project Overview : Sentiment Analysis helps us to

Balaji R 1 Jan 01, 2022