This commit is contained in:
Alex 2020-07-12 03:03:29 -05:00
parent f900652347
commit 35576298e8
4 changed files with 224 additions and 180 deletions

20
.idea/deployment.xml Normal file
View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PublishConfigData" autoUpload="Always" serverName="Osselbot">
<serverData>
<paths name="Osselbot">
<serverdata>
<mappings>
<mapping deploy="./" local="$PROJECT_DIR$" web="/" />
</mappings>
<excludedPaths>
<excludedPath local="true" path="*/node_modules" />
<excludedPath local="true" path="*/.github" />
<excludedPath local="true" path="*/.vscode" />
</excludedPaths>
</serverdata>
</paths>
</serverData>
<option name="myAutoUpload" value="ALWAYS" />
</component>
</project>

8
.idea/sshConfigs.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="SshConfigs">
<configs>
<sshConfig authType="PASSWORD" host="closet.technicolor.2a03.party" id="6a813722-88b4-4195-8883-007723ea90cf" port="22" nameFormat="DESCRIPTIVE" username="technicolor" />
</configs>
</component>
</project>

14
.idea/webServers.xml Normal file
View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="WebServers">
<option name="servers">
<webServer id="9f6d902c-40b4-432f-9949-a2d625d1f8eb" name="Osselbot" url="http://closet.technicolor.2a03.party">
<fileTransfer rootFolder="/home/technicolor/osselbot" accessType="SFTP" host="closet.technicolor.2a03.party" port="22" sshConfigId="6a813722-88b4-4195-8883-007723ea90cf" sshConfig="technicolor@closet.technicolor.2a03.party:22 password">
<advancedOptions>
<advancedOptions dataProtectionLevel="Private" passiveMode="true" shareSSLContext="true" />
</advancedOptions>
</fileTransfer>
</webServer>
</option>
</component>
</project>

View File

@ -19,7 +19,8 @@ const client = new Discord.Client();
function activity() {
client.user.setActivity(`${client.users.cache.size} of you horrible people`, {type: 'LISTENING'}).then(() => {} );
client.user.setActivity(`${client.users.cache.size} of you horrible people`, {type: 'LISTENING'}).then(() => {
});
}
client.on("ready", () => {
@ -48,7 +49,7 @@ client.on("message", async message => {
//Message processing
// noinspection SpellCheckingInspection
if (message.content.toLowerCase().includes('nigg','negro', 'niglet', 'fag', 'f4g', 'n1gg', 'gg3r')) {
if (message.content.toLowerCase().includes('nigg', 'negro', 'niglet', 'fag', 'f4g', 'n1gg', 'gg3r')) {
await message.delete();
return message.reply(`Listen here cum-sock we dont appreciate that here ${message.member}. If you gonna be like that you may just well end up in the JAR and we all know how that ends...`)
}
@ -188,7 +189,6 @@ client.on("message", async message => {
quotes.quotes.push(quoteadd)
fs.writeFile(`${homedir}/quotes.json`, JSON.stringify(quotes, null, 2), (err) => {
if (err) return message.reply("Something went wrong");
``
client.channels.cache.get('712084662033580064').send(`${message.member} has submitted \`${quoteadd}\` to the quote repository`);
return message.reply("Quote added to repository");
});
@ -256,4 +256,6 @@ if (process.argv.slice(2).includes("--TEST")) {
}
//Logging in the bot
client.login(config.token).then(() => {console.log("Logged in")});
client.login(config.token).then(() => {
console.log("Logged in")
});