From b3e10e6bc4c1a614073289abdc54f28ca61a945a Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Mon, 22 Jun 2020 15:41:32 -0500 Subject: [PATCH] Restructure project for nimble --- src/nimcord.nim | 12 ++++++++++++ src/{ => nimcord}/cache.nim | 0 src/{ => nimcord}/channel.nim | 0 src/{ => nimcord}/client.nim | 5 ----- src/{ => nimcord}/clientobjects.nim | 0 src/{ => nimcord}/discordobject.nim | 0 src/{ => nimcord}/embed.nim | 0 src/{ => nimcord}/emoji.nim | 0 src/{ => nimcord}/eventdispatcher.nim | 0 src/{ => nimcord}/eventhandler.nim | 0 src/{ => nimcord}/guild.nim | 0 src/{ => nimcord}/image.nim | 0 src/{ => nimcord}/member.nim | 0 src/{ => nimcord}/message.nim | 0 src/{ => nimcord}/nimcordutils.nim | 0 src/{ => nimcord}/permission.nim | 0 src/{ => nimcord}/presence.nim | 0 src/{ => nimcord}/role.nim | 0 src/{ => nimcord}/user.nim | 0 19 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 src/nimcord.nim rename src/{ => nimcord}/cache.nim (100%) rename src/{ => nimcord}/channel.nim (100%) rename src/{ => nimcord}/client.nim (96%) rename src/{ => nimcord}/clientobjects.nim (100%) rename src/{ => nimcord}/discordobject.nim (100%) rename src/{ => nimcord}/embed.nim (100%) rename src/{ => nimcord}/emoji.nim (100%) rename src/{ => nimcord}/eventdispatcher.nim (100%) rename src/{ => nimcord}/eventhandler.nim (100%) rename src/{ => nimcord}/guild.nim (100%) rename src/{ => nimcord}/image.nim (100%) rename src/{ => nimcord}/member.nim (100%) rename src/{ => nimcord}/message.nim (100%) rename src/{ => nimcord}/nimcordutils.nim (100%) rename src/{ => nimcord}/permission.nim (100%) rename src/{ => nimcord}/presence.nim (100%) rename src/{ => nimcord}/role.nim (100%) rename src/{ => nimcord}/user.nim (100%) diff --git a/src/nimcord.nim b/src/nimcord.nim new file mode 100644 index 0000000..5f7d517 --- /dev/null +++ b/src/nimcord.nim @@ -0,0 +1,12 @@ +import nimcord/[cache, channel, client, clientobjects, discordobject] +import nimcord/[embed, eventdispatcher, guild, image, member, message] +import nimcord/[nimcordutils, permission, presence, role, user] + +export cache, channel, client, clientobjects, discordobject +export embed, eventdispatcher, guild, image, member, message +export nimcordutils, permission, presence, role, user + +const + nimcordMajor = 0 + nimcordMinor = 0 + nimcordMicro = 1 \ No newline at end of file diff --git a/src/cache.nim b/src/nimcord/cache.nim similarity index 100% rename from src/cache.nim rename to src/nimcord/cache.nim diff --git a/src/channel.nim b/src/nimcord/channel.nim similarity index 100% rename from src/channel.nim rename to src/nimcord/channel.nim diff --git a/src/client.nim b/src/nimcord/client.nim similarity index 96% rename from src/client.nim rename to src/nimcord/client.nim index fd5aa0e..c0737e7 100644 --- a/src/client.nim +++ b/src/nimcord/client.nim @@ -2,11 +2,6 @@ import websocket, asyncdispatch, json, httpClient, eventdispatcher, strformat import eventhandler, streams, nimcordutils, discordobject, user, cache, clientobjects import strutils, channel, options, message, emoji, guild, embed, os, presence -const - nimcordMajor = 0 - nimcordMinor = 0 - nimcordMicro = 0 - type DiscordOpCode = enum opDispatch = 0, diff --git a/src/clientobjects.nim b/src/nimcord/clientobjects.nim similarity index 100% rename from src/clientobjects.nim rename to src/nimcord/clientobjects.nim diff --git a/src/discordobject.nim b/src/nimcord/discordobject.nim similarity index 100% rename from src/discordobject.nim rename to src/nimcord/discordobject.nim diff --git a/src/embed.nim b/src/nimcord/embed.nim similarity index 100% rename from src/embed.nim rename to src/nimcord/embed.nim diff --git a/src/emoji.nim b/src/nimcord/emoji.nim similarity index 100% rename from src/emoji.nim rename to src/nimcord/emoji.nim diff --git a/src/eventdispatcher.nim b/src/nimcord/eventdispatcher.nim similarity index 100% rename from src/eventdispatcher.nim rename to src/nimcord/eventdispatcher.nim diff --git a/src/eventhandler.nim b/src/nimcord/eventhandler.nim similarity index 100% rename from src/eventhandler.nim rename to src/nimcord/eventhandler.nim diff --git a/src/guild.nim b/src/nimcord/guild.nim similarity index 100% rename from src/guild.nim rename to src/nimcord/guild.nim diff --git a/src/image.nim b/src/nimcord/image.nim similarity index 100% rename from src/image.nim rename to src/nimcord/image.nim diff --git a/src/member.nim b/src/nimcord/member.nim similarity index 100% rename from src/member.nim rename to src/nimcord/member.nim diff --git a/src/message.nim b/src/nimcord/message.nim similarity index 100% rename from src/message.nim rename to src/nimcord/message.nim diff --git a/src/nimcordutils.nim b/src/nimcord/nimcordutils.nim similarity index 100% rename from src/nimcordutils.nim rename to src/nimcord/nimcordutils.nim diff --git a/src/permission.nim b/src/nimcord/permission.nim similarity index 100% rename from src/permission.nim rename to src/nimcord/permission.nim diff --git a/src/presence.nim b/src/nimcord/presence.nim similarity index 100% rename from src/presence.nim rename to src/nimcord/presence.nim diff --git a/src/role.nim b/src/nimcord/role.nim similarity index 100% rename from src/role.nim rename to src/nimcord/role.nim diff --git a/src/user.nim b/src/nimcord/user.nim similarity index 100% rename from src/user.nim rename to src/nimcord/user.nim