Today I Bring You My Personal Typing Forever Discord Script
Warning: This is my personal script that I wrote. If I see any reposts of this Ill report you.
#Simplified for the intellectually challenged and non contributing leeches.
1) Got to https://glitch.com/
2) After you register, click on "New Project"
3) Then Click on "Hello Express"
4) By Default, It will look like this.
5) Delete All The Code In "Package.json"
Delete All The Code In "Server.js"
6) Click "New File"
7) Type in "config.json"
8) After you type it in, click "Add This File"
You'll see, now you have three categories.
9) Now we add the code
Copy and Paste This Code Under This Line Into "config.json"
Code:
{
"token": "",
"prefix": "!"
}
10) Put You Token Between The Quotations
Code:
Example:
{
"token": "TOKEN HERE",
"prefix": "!"
}
11) Copy And Paste This Code Into "package.json"
Code:
{
"name": "typing",
"version": "1.0.1",
"description": "Types forever",
"main": "node server.js",
"scripts": {
"start": "node server.js"
},
"dependencies": {
"discord.js": "^11.3.2"
}
}
12) Copy And Paste This Code Into "server.js"
Code:
const http = require('http');
const Discord = require("discord.js");
const client = new Discord.Client();
const config = require('./config.json');
client.config = config;
client.on("message", async message => {
if(message.content.indexOf(config.prefix) !== 0) return;
const args = message.content.slice(config.prefix.length).trim().split(/ +/g);
const command = args.shift().toLowerCase();
if(command === "?") {
message.delete().catch(O_o=>{});
message.channel.startTyping();
}
});
client.login(config.token);
13) Now Direct Message A Friend This Command
Code:
!? = prefix
Message your friend that prefix command
send !? in a dm on discord.
If it disappears right away it is working
If it doesn't disappear than its not working
You'll be typing forever to the person you send "!?" too. It will piss them off and its funny to see their reactions.