-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9038819
commit 6e41fc7
Showing
17 changed files
with
444 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
app/src/main/kotlin/ca/fireball1725/lcs/discordbot/data/databasenew/MemberInvitesTable.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Created for the Lost Crafters SMP (https://www.lostcrafterssmp.com) | ||
* Licensed under the GNU Affero General Public License v3.0 | ||
* See LICENSE.txt for full license information | ||
*/ | ||
|
||
package ca.fireball1725.lcs.discordbot.data.databasenew | ||
|
||
import org.ktorm.schema.Table | ||
import org.ktorm.schema.boolean | ||
import org.ktorm.schema.long | ||
import org.ktorm.schema.uuid | ||
import org.ktorm.schema.varchar | ||
|
||
class MemberInvitesTable { | ||
object MemberInvites : Table<Nothing>("member_invites") { | ||
val inviteId = uuid("invite_uuid").primaryKey() | ||
val inviteCode = varchar("invite_code") | ||
val memberId = uuid("member_uuid") | ||
val inviteUsed = boolean("invite_used") | ||
val inviteUsedBy = long("invite_used_by") | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
app/src/main/kotlin/ca/fireball1725/lcs/discordbot/data/databasenew/membersdb.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Created for the Lost Crafters SMP (https://www.lostcrafterssmp.com) | ||
* Licensed under the GNU Affero General Public License v3.0 | ||
* See LICENSE.txt for full license information | ||
*/ | ||
|
||
package ca.fireball1725.lcs.discordbot.data.databasenew | ||
|
||
import org.ktorm.schema.Table | ||
import org.ktorm.schema.uuid | ||
import org.ktorm.schema.varchar | ||
|
||
class membersdb { | ||
object members : Table<Nothing>("members") { | ||
val member_id = uuid("member_id").primaryKey() | ||
val display_name = varchar("display_username") | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
app/src/main/kotlin/ca/fireball1725/lcs/discordbot/data/invitebot/InviteBotMessage.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Created for the Lost Crafters SMP (https://www.lostcrafterssmp.com) | ||
* Licensed under the GNU Affero General Public License v3.0 | ||
* See LICENSE.txt for full license information | ||
*/ | ||
|
||
package ca.fireball1725.lcs.discordbot.data.invitebot | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class InviteBotMessage( | ||
@SerializedName("member" ) var member : InviteBotMessageMember? = InviteBotMessageMember(), | ||
@SerializedName("source_invite_code" ) var sourceInviteCode : String? = null, | ||
@SerializedName("join_source_type" ) var joinSourceType : Int? = null, | ||
@SerializedName("inviter_id" ) var inviterId : String? = null | ||
) |
24 changes: 24 additions & 0 deletions
24
app/src/main/kotlin/ca/fireball1725/lcs/discordbot/data/invitebot/InviteBotMessageMember.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Created for the Lost Crafters SMP (https://www.lostcrafterssmp.com) | ||
* Licensed under the GNU Affero General Public License v3.0 | ||
* See LICENSE.txt for full license information | ||
*/ | ||
|
||
package ca.fireball1725.lcs.discordbot.data.invitebot | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class InviteBotMessageMember( | ||
@SerializedName("avatar" ) var avatar : String? = null, | ||
@SerializedName("communication_disabled_until" ) var communicationDisabledUntil : String? = null, | ||
@SerializedName("flags" ) var flags : Int? = null, | ||
@SerializedName("joined_at" ) var joinedAt : String? = null, | ||
@SerializedName("nick" ) var nick : String? = null, | ||
@SerializedName("pending" ) var pending : Boolean? = null, | ||
@SerializedName("premium_since" ) var premiumSince : String? = null, | ||
@SerializedName("roles" ) var roles : ArrayList<String> = arrayListOf(), | ||
@SerializedName("unusual_dm_activity_until" ) var unusualDmActivityUntil : String? = null, | ||
@SerializedName("user" ) var user : InviteBotMessageUser? = InviteBotMessageUser(), | ||
@SerializedName("mute" ) var mute : Boolean? = null, | ||
@SerializedName("deaf" ) var deaf : Boolean? = null | ||
) |
25 changes: 25 additions & 0 deletions
25
app/src/main/kotlin/ca/fireball1725/lcs/discordbot/data/invitebot/InviteBotMessageUser.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Created for the Lost Crafters SMP (https://www.lostcrafterssmp.com) | ||
* Licensed under the GNU Affero General Public License v3.0 | ||
* See LICENSE.txt for full license information | ||
*/ | ||
|
||
package ca.fireball1725.lcs.discordbot.data.invitebot | ||
|
||
import com.google.gson.annotations.SerializedName | ||
|
||
data class InviteBotMessageUser( | ||
@SerializedName("id" ) var id : String? = null, | ||
@SerializedName("username" ) var username : String? = null, | ||
@SerializedName("avatar" ) var avatar : String? = null, | ||
@SerializedName("discriminator" ) var discriminator : String? = null, | ||
@SerializedName("public_flags" ) var publicFlags : Int? = null, | ||
@SerializedName("flags" ) var flags : Int? = null, | ||
@SerializedName("bot" ) var bot : Boolean? = null, | ||
@SerializedName("banner" ) var banner : String? = null, | ||
@SerializedName("accent_color" ) var accentColor : String? = null, | ||
@SerializedName("global_name" ) var globalName : String? = null, | ||
@SerializedName("avatar_decoration_data" ) var avatarDecorationData : String? = null, | ||
@SerializedName("banner_color" ) var bannerColor : String? = null, | ||
@SerializedName("clan" ) var clan : String? = null | ||
) |
Oops, something went wrong.