YEET!
This commit is contained in:
parent
f900652347
commit
35576298e8
|
@ -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>
|
|
@ -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>
|
|
@ -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>
|
|
@ -19,7 +19,8 @@ const client = new Discord.Client();
|
||||||
|
|
||||||
|
|
||||||
function activity() {
|
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", () => {
|
client.on("ready", () => {
|
||||||
|
@ -188,7 +189,6 @@ client.on("message", async message => {
|
||||||
quotes.quotes.push(quoteadd)
|
quotes.quotes.push(quoteadd)
|
||||||
fs.writeFile(`${homedir}/quotes.json`, JSON.stringify(quotes, null, 2), (err) => {
|
fs.writeFile(`${homedir}/quotes.json`, JSON.stringify(quotes, null, 2), (err) => {
|
||||||
if (err) return message.reply("Something went wrong");
|
if (err) return message.reply("Something went wrong");
|
||||||
``
|
|
||||||
client.channels.cache.get('712084662033580064').send(`${message.member} has submitted \`${quoteadd}\` to the quote repository`);
|
client.channels.cache.get('712084662033580064').send(`${message.member} has submitted \`${quoteadd}\` to the quote repository`);
|
||||||
return message.reply("Quote added to repository");
|
return message.reply("Quote added to repository");
|
||||||
});
|
});
|
||||||
|
@ -256,4 +256,6 @@ if (process.argv.slice(2).includes("--TEST")) {
|
||||||
}
|
}
|
||||||
|
|
||||||
//Logging in the bot
|
//Logging in the bot
|
||||||
client.login(config.token).then(() => {console.log("Logged in")});
|
client.login(config.token).then(() => {
|
||||||
|
console.log("Logged in")
|
||||||
|
});
|
Loading…
Reference in New Issue