commit
8d82d737a4
3 changed files with 16 additions and 16 deletions
4
.github/workflows/maven.yml
vendored
4
.github/workflows/maven.yml
vendored
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
uses: garygrossgarten/github-action-scp@release
|
uses: garygrossgarten/github-action-scp@release
|
||||||
with:
|
with:
|
||||||
local: ./target/Hadder-Build.jar
|
local: ./target/Hadder-Build.jar
|
||||||
remote: /home/Bots/Hadder-Build.jar
|
remote: /home/Hadder-Build.jar
|
||||||
host: ${{ secrets.HOST }}
|
host: ${{ secrets.HOST }}
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
password: ${{ secrets.PASSWORD }}
|
password: ${{ secrets.PASSWORD }}
|
||||||
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
password: ${{ secrets.PASSWORD }}
|
password: ${{ secrets.PASSWORD }}
|
||||||
port: ${{ secrets.PORT }}
|
port: ${{ secrets.PORT }}
|
||||||
script: /home/Bots/deploy.sh
|
script: /home/deploy.sh
|
||||||
- name: Send Webhook Notification
|
- name: Send Webhook Notification
|
||||||
if: always()
|
if: always()
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
16
pom.xml
16
pom.xml
|
|
@ -15,6 +15,14 @@
|
||||||
<maven.compiler.target>1.13</maven.compiler.target>
|
<maven.compiler.target>1.13</maven.compiler.target>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
|
<repositories>
|
||||||
|
<repository>
|
||||||
|
<id>jcenter</id>
|
||||||
|
<name>jcenter-bintray</name>
|
||||||
|
<url>https://jcenter.bintray.com</url>
|
||||||
|
</repository>
|
||||||
|
</repositories>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.dv8tion</groupId>
|
<groupId>net.dv8tion</groupId>
|
||||||
|
|
@ -53,14 +61,6 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<repositories>
|
|
||||||
<repository>
|
|
||||||
<id>jcenter</id>
|
|
||||||
<name>jcenter-bintray</name>
|
|
||||||
<url>https://jcenter.bintray.com</url>
|
|
||||||
</repository>
|
|
||||||
</repositories>
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<pluginManagement>
|
<pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
|
|
||||||
|
|
@ -62,25 +62,25 @@ public class Rethink {
|
||||||
else return null;
|
else return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void update(String table, String value, String what, String whatvalue) {
|
public void update(String table, String where, String what, String value) {
|
||||||
try {
|
try {
|
||||||
r.table(table).get(value).update(r.hashMap(what, whatvalue)).run(conn);
|
r.table(table).get(where).update(r.hashMap(what, value)).run(conn);
|
||||||
} catch (ClassCastException e) {
|
} catch (ClassCastException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void update(String table, String value, String what, int whatvalue) {
|
public void update(String table, String where, String what, int value) {
|
||||||
try {
|
try {
|
||||||
r.table(table).get(value).update(r.hashMap(what, whatvalue)).run(conn);
|
r.table(table).get(where).update(r.hashMap(what, value)).run(conn);
|
||||||
} catch (ClassCastException e) {
|
} catch (ClassCastException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void update(String table, String value, String what, boolean whatvalue) {
|
public void update(String table, String where, String what, boolean value) {
|
||||||
try {
|
try {
|
||||||
r.table(table).get(value).update(r.hashMap(what, whatvalue)).run(conn);
|
r.table(table).get(where).update(r.hashMap(what, value)).run(conn);
|
||||||
} catch (ClassCastException e) {
|
} catch (ClassCastException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue