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